Module: Pluckers::Features::Base::Pluck
- Included in:
- Pluck
- Defined in:
- lib/pluckers/features/base/pluck.rb
Overview
This module implements the actual pluck. In ActiveRecord 4 and greater it just uses the standard ‘pluck’ method but in other AR versions it could need some customizations.
Instance Method Summary collapse
Instance Method Details
#all_method ⇒ Object
23 24 25 |
# File 'lib/pluckers/features/base/pluck.rb', line 23 def all_method :all end |
#pluck_records(fields_to_pluck) ⇒ Object
19 20 21 |
# File 'lib/pluckers/features/base/pluck.rb', line 19 def pluck_records fields_to_pluck @records.pluck(*fields_to_pluck) end |