module Pluckers::Features::Base::Pluck

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.

Public Instance Methods

all_method() click to toggle source
# File lib/pluckers/features/base/pluck.rb, line 23
def all_method
  :all
end
pluck_records(fields_to_pluck) click to toggle source
# File lib/pluckers/features/base/pluck.rb, line 19
def pluck_records fields_to_pluck
  @records.pluck(*fields_to_pluck)
end