Module: SimpleParams::StrictParams::ClassMethods

Defined in:
lib/simple_params/concerns/strict_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#strict_enforcementObject

Returns the value of attribute strict_enforcement.



57
58
59
# File 'lib/simple_params/concerns/strict_params.rb', line 57

def strict_enforcement
  @strict_enforcement
end

Instance Method Details

#allow_undefined_paramsObject



63
64
65
# File 'lib/simple_params/concerns/strict_params.rb', line 63

def allow_undefined_params
  @strict_enforcement = false
end

#strictObject



59
60
61
# File 'lib/simple_params/concerns/strict_params.rb', line 59

def strict
  @strict_enforcement = true
end