mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
@@ -67,7 +67,6 @@ module ActiveRecord
|
||||
#
|
||||
# >> Model.select(:field).first.other_field
|
||||
# => ActiveModel::MissingAttributeError: missing attribute: other_field
|
||||
|
||||
def select(value = Proc.new)
|
||||
if block_given?
|
||||
to_a.select {|*block_args| value.call(*block_args) }
|
||||
|
||||
Reference in New Issue
Block a user