Module: ActiveRecordQuery::Selectable
- Extended by:
- ActiveSupport::Concern
- Included in:
- Base
- Defined in:
- lib/active_record_query/concerns/selectable.rb
Instance Method Summary collapse
Instance Method Details
#build_select(scope) ⇒ Object
16 17 18 19 20 |
# File 'lib/active_record_query/concerns/selectable.rb', line 16 def build_select(scope) arg_stacker = ArgumentStacker.new(self, :select) args = arg_stacker.list args.present? ? scope.select(*args) : scope end |