Module: ActiveRecordQuery::Havingable
- Extended by:
- ActiveSupport::Concern
- Included in:
- Base
- Defined in:
- lib/active_record_query/concerns/havingable.rb
Instance Method Summary collapse
Instance Method Details
#build_having(scope) ⇒ Object
18 19 20 21 22 |
# File 'lib/active_record_query/concerns/havingable.rb', line 18 def build_having(scope) arg_stacker = ArgumentStacker.new(self, :having) args = ExpressionParser.new(self).parse(arg_stacker.list) args.present? ? scope.having(*args) : scope end |