Exception: ActiveData::NormalizerMissing

Inherits:
NoMethodError
  • Object
show all
Defined in:
lib/active_data/errors.rb

Instance Method Summary collapse

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