module EncryptedFormFields::EncryptedParameters

Public Instance Methods

encrypted_params() click to toggle source

Decrypt encrypted parameters

# File lib/encrypted_form_fields/encrypted_parameters.rb, line 6
def encrypted_params
  @encrypted_params ||=
    EncryptedFormFields.decrypt_parameters(params["_encrypted"] || {})
end