Method: ActiveData::NormalizerMissing#initialize

Defined in:
lib/active_data/errors.rb

#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 <<-EOS
Could not find normalizer `:#{name}`
You can define it with:

  ActiveData.normalizer(:#{name}) do |value, options|
# do some staff with value and options
  end
  EOS
end