Exception: BabySqueel::Association::AliasingError
- Inherits:
-
StandardError
- Object
- StandardError
- BabySqueel::Association::AliasingError
- 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
-
#initialize(association, alias_name) ⇒ AliasingError
constructor
A new instance of AliasingError.
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 |