Module: Cequel::Record::MassAssignment
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/cequel/record/mass_assignment.rb
Overview
Cequel supports mass-assignment protection in both the Rails 3 and Rails 4 paradigms. Rails 3 applications may define ‘attr_protected` and `attr_accessible` attributes in Cequel::Record classes. In Rails 4, Cequel will respect strong parameters.
Instance Method Summary collapse
Instance Method Details
#attributes=(attributes) ⇒ Object
38 39 40 |
# File 'lib/cequel/record/mass_assignment.rb', line 38 def attributes=(attributes) super(sanitize_for_mass_assignment(attributes)) end |