Module: Upfluence::Mixin::StrongParameters

Defined in:
lib/upfluence/mixin/strong_parameters.rb

Defined Under Namespace

Classes: ParameterMissing, Parameters, UnpermittedParameters

Instance Method Summary collapse

Instance Method Details

#json_paramsObject



256
257
258
# File 'lib/upfluence/mixin/strong_parameters.rb', line 256

def json_params
  @_json_params ||= Parameters.new(super)
end

#json_params=(val) ⇒ Object



260
261
262
# File 'lib/upfluence/mixin/strong_parameters.rb', line 260

def json_params=(val)
  @_json_params = val.is_a?(Hash) ? Parameters.new(val) : val
end

#paramsObject



248
249
250
# File 'lib/upfluence/mixin/strong_parameters.rb', line 248

def params
  @_params ||= Parameters.new(@params)
end

#params=(val) ⇒ Object



252
253
254
# File 'lib/upfluence/mixin/strong_parameters.rb', line 252

def params=(val)
  @_params = val.is_a?(Hash) ? Parameters.new(val) : val
end