Exception: Decidim::UnableToComposeQueriesException

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

Instance Method Summary collapse

Constructor Details

#initialize(query, other) ⇒ UnableToComposeQueriesException

Returns a new instance of UnableToComposeQueriesException.



10
11
12
13
14
15
16
# File 'lib/decidim/query.rb', line 10

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