Exception: Rectify::UnableToComposeQueries
- Inherits:
-
StandardError
- Object
- StandardError
- Rectify::UnableToComposeQueries
- Defined in:
- lib/rectify/errors.rb
Instance Method Summary collapse
-
#initialize(query, other) ⇒ UnableToComposeQueries
constructor
A new instance of UnableToComposeQueries.
Constructor Details
#initialize(query, other) ⇒ UnableToComposeQueries
Returns a new instance of UnableToComposeQueries.
3 4 5 6 7 8 9 |
# File 'lib/rectify/errors.rb', line 3 def initialize(query, other) super( "Unable to composite queries #{query.class.name} and " \ "#{other.class.name}. You cannot compose queries where #query " \ "returns an ActiveRecord::Relation in one and an array in the other." ) end |