instance method populate_with_current_scope_attributes

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v3.1.12 Private

Available 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 1875
      def populate_with_current_scope_attributes
        if scope = self.class.send(:current_scoped_methods)
          create_with = scope.scope_for_create
          create_with.each { |att,value| self.respond_to?(:"#{att}=") && self.send("#{att}=", value) } if create_with
        end
      end

Defined in activerecord/lib/active_record/base.rb line 1875 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Base

Type at least 2 characters to search.

↑↓ navigate · open · esc close