Exception: ActiveRecordAliasedJoins::UnsupportedReflectionError

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

Overview

UnsupportedReflectionError

Instance Method Summary collapse

Constructor Details

#initialize(reflection = nil) ⇒ UnsupportedReflectionError

Returns a new instance of UnsupportedReflectionError.



12
13
14
15
16
17
18
# File 'lib/active_record_aliased_joins.rb', line 12

def initialize(reflection = nil)
  if reflection
    super("Reflection not supported #{reflection.name.inspect}")
  else
    super('Reflection not supported error.')
  end
end