instance method populate_with_current_scope_attributes

Ruby on Rails 3.2.22.5

Since v3.2.22.5 Last seen in v4.2.9

Available in: v3.2.22.5 v4.0.13 v4.1.16 v4.2.9

Signature

populate_with_current_scope_attributes()

No documentation comment.

Source
# File activerecord/lib/active_record/scoping.rb, line 143
    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/scoping.rb line 143 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Scoping

Type at least 2 characters to search.

↑↓ navigate · open · esc close