Exception: MediaTypes::Serialization::ArrayInViewParameterError

Inherits:
ConfigurationError show all
Defined in:
lib/media_types/serialization/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(function) ⇒ ArrayInViewParameterError

Returns a new instance of ArrayInViewParameterError.



153
154
155
# File 'lib/media_types/serialization/error.rb', line 153

def initialize(function)
  super("Tried to call #{function} with an array in the view: parameter. Please use the views: parameter instead.")
end