Exception: Xeroizer::InvalidAttributeInWhere

Inherits:
StandardError
  • Object
show all
Defined in:
lib/xeroizer/exceptions.rb

Instance Method Summary (collapse)

Constructor Details

- (InvalidAttributeInWhere) initialize(model_name, attribute_name)

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

- (Object) message



106
107
108
# File 'lib/xeroizer/exceptions.rb', line 106

def message
  "#{@attribute_name} is not an attribute of #{@model_name}."
end