Exception: RelationToJSON::ReflectionBuilder::UnsupportedReflectionType

Inherits:
StandardError
  • Object
show all
Defined in:
lib/relation_to_json/reflection_builder.rb

Instance Method Summary collapse

Constructor Details

#initialize(reflection) ⇒ UnsupportedReflectionType

Returns a new instance of UnsupportedReflectionType.



6
7
8
# File 'lib/relation_to_json/reflection_builder.rb', line 6

def initialize(reflection)
  @reflection = reflection
end

Instance Method Details

#messageObject



10
11
12
# File 'lib/relation_to_json/reflection_builder.rb', line 10

def message
  "Unrecognized reflection type: #{reflection.class}"
end