Method: ActiveRecord::QueryMethods#create_with!
- Defined in:
- activerecord/lib/active_record/relation/query_methods.rb
#create_with!(value) ⇒ Object
:nodoc:
1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 |
# File 'activerecord/lib/active_record/relation/query_methods.rb', line 1350 def create_with!(value) # :nodoc: if value value = sanitize_forbidden_attributes(value) self.create_with_value = create_with_value.merge(value) else self.create_with_value = FROZEN_EMPTY_HASH end self end |