Exception: BabySqueel::Association::AliasingError

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

Constant Summary collapse

MESSAGE =
'Attempted to alias \'%{association}\' as \'%{alias_name}\', but the ' \
'association was implicitly joined. Either join the association ' \
'with `on` or remove the alias.'.freeze

Instance Method Summary collapse

Constructor Details

#initialize(association, alias_name) ⇒ AliasingError

Returns a new instance of AliasingError.



11
12
13
# File 'lib/baby_squeel/association.rb', line 11

def initialize(association, alias_name)
  super format(MESSAGE, association: association, alias_name: alias_name)
end