Exception: TrustedKeys::Error::Usage
- Inherits:
-
StandardError
- Object
- StandardError
- TrustedKeys::Error::Usage
- Defined in:
- lib/trusted_keys/error/usage.rb
Instance Method Summary collapse
-
#initialize(params) ⇒ Usage
constructor
A new instance of Usage.
- #message ⇒ Object
Constructor Details
#initialize(params) ⇒ Usage
Returns a new instance of Usage.
4 5 6 |
# File 'lib/trusted_keys/error/usage.rb', line 4 def initialize(params) @params = params end |
Instance Method Details
#message ⇒ Object
8 9 10 11 12 13 |
# File 'lib/trusted_keys/error/usage.rb', line 8 def "\n\nparams => #{@params.inspect}\n\n" + "Error: Before using `trusted_attributes` you must set the " + "trusted keys in the controller, for examples: `trust :post` " + "or `trust :title, :body, for: 'post'`" end |