Exception: ActiveRecord::UnionRelation::NoConfiguredSubqueriesError
- Inherits:
-
Error
- Object
- StandardError
- Error
- ActiveRecord::UnionRelation::NoConfiguredSubqueriesError
- Defined in:
- lib/active_record/union_relation.rb
Overview
If you attempt to use a union before you’ve added any subqueries, we’ll raise this error so there’s not some weird undefined method behavior.
Instance Method Summary collapse
-
#initialize ⇒ NoConfiguredSubqueriesError
constructor
A new instance of NoConfiguredSubqueriesError.
Constructor Details
#initialize ⇒ NoConfiguredSubqueriesError
Returns a new instance of NoConfiguredSubqueriesError.
23 24 25 |
# File 'lib/active_record/union_relation.rb', line 23 def initialize super("No subqueries have been configured for this union") end |