instance method
scope_for_create
Ruby on Rails 5.2.8.1
Since v3.0.20Signature
scope_for_create()
No documentation comment.
Source
# File activerecord/lib/active_record/relation.rb, line 467
def scope_for_create
where_values_hash.merge!(create_with_value.stringify_keys)
end
Defined in activerecord/lib/active_record/relation.rb line 467
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Relation