Exception: Xeroizer::InvalidAttributeInWhere
- Inherits:
-
StandardError
- Object
- StandardError
- Xeroizer::InvalidAttributeInWhere
- Defined in:
- lib/xeroizer/exceptions.rb
Instance Method Summary collapse
-
#initialize(model_name, attribute_name) ⇒ InvalidAttributeInWhere
constructor
A new instance of InvalidAttributeInWhere.
- #message ⇒ Object
Constructor Details
#initialize(model_name, attribute_name) ⇒ InvalidAttributeInWhere
Returns a new instance of InvalidAttributeInWhere.
101 102 103 104 |
# File 'lib/xeroizer/exceptions.rb', line 101 def initialize(model_name, attribute_name) @model_name = model_name @attribute_name = attribute_name end |
Instance Method Details
#message ⇒ Object
106 107 108 |
# File 'lib/xeroizer/exceptions.rb', line 106 def "#{@attribute_name} is not an attribute of #{@model_name}." end |