Exception: ActiveRecord::UnionRelation::NoConfiguredSubqueriesError

Inherits:
Error
  • Object
show all
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

Constructor Details

#initializeNoConfiguredSubqueriesError

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