Method: Sequel::Model::ClassMethods#strict_param_setting
- Defined in:
- lib/sequel/model/base.rb
#strict_param_setting ⇒ Object
Whether mass assigning via .create/.new/#set/#update should raise an error if an invalid key is used. A key is invalid if no setter method exists for that key or the access to the setter method is restricted (e.g. due to it being a primary key field). If set to false, silently skip any key where the setter method doesn’t exist or access to it is restricted.
100 101 102 |
# File 'lib/sequel/model/base.rb', line 100 def strict_param_setting @strict_param_setting end |