Module: Protobuf::ActiveRecord::MassAssignmentSecurity::Persistence
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/protobuf/active_record/mass_assignment_security/persistence.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#assign_attributes(attributes, options = {}) ⇒ Object
:nodoc:.
-
#update_attributes(attributes, options = {}) ⇒ Object
:nodoc:.
-
#update_attributes!(attributes, options = {}) ⇒ Object
:nodoc:.
Instance Method Details
#assign_attributes(attributes, options = {}) ⇒ Object
:nodoc:
26 27 28 29 30 |
# File 'lib/protobuf/active_record/mass_assignment_security/persistence.rb', line 26 def assign_attributes(attributes, = {}) attributes = attributes_from_proto(attributes) if attributes.is_a?(::Protobuf::Message) super(attributes, ) end |
#update_attributes(attributes, options = {}) ⇒ Object
:nodoc:
33 34 35 36 37 |
# File 'lib/protobuf/active_record/mass_assignment_security/persistence.rb', line 33 def update_attributes(attributes, = {}) attributes = attributes_from_proto(attributes) if attributes.is_a?(::Protobuf::Message) super(attributes, ) end |
#update_attributes!(attributes, options = {}) ⇒ Object
:nodoc:
40 41 42 43 44 |
# File 'lib/protobuf/active_record/mass_assignment_security/persistence.rb', line 40 def update_attributes!(attributes, = {}) attributes = attributes_from_proto(attributes) if attributes.is_a?(::Protobuf::Message) super(attributes, ) end |