Exception: ActiveData::NormalizerMissing
- Inherits:
-
NoMethodError
- Object
- NoMethodError
- ActiveData::NormalizerMissing
- Defined in:
- lib/active_data/errors.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ NormalizerMissing
constructor
A new instance of NormalizerMissing.
Constructor Details
#initialize(name) ⇒ NormalizerMissing
Returns a new instance of NormalizerMissing.
69 70 71 72 73 74 75 76 77 78 |
# File 'lib/active_data/errors.rb', line 69 def initialize(name) super <<-MESSAGE Could not find normalizer `:#{name}` You can define it with: ActiveData.normalizer(:#{name}) do |value, options| # do some staff with value and options end MESSAGE end |