instance method
populate_with_current_scope_attributes
Ruby on Rails 3.1.12
Since v3.0.20 Last seen in v3.1.12 PrivateAvailable in: v3.0.20 v3.1.12
Signature
populate_with_current_scope_attributes()
No documentation comment.
Source
# File activerecord/lib/active_record/base.rb, line 2140
def populate_with_current_scope_attributes
return unless self.class.scope_attributes?
self.class.scope_attributes.each do |att,value|
send("#{att}=", value) if respond_to?("#{att}=")
end
end
Defined in activerecord/lib/active_record/base.rb line 2140
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Base