Class: ActiveRecord::Relation
- Inherits:
-
Object
- Object
- ActiveRecord::Relation
- Defined in:
- lib/deep_pluck.rb
Instance Method Summary collapse
Instance Method Details
#deep_pluck(*args) ⇒ Object
8 9 10 |
# File 'lib/deep_pluck.rb', line 8 def deep_pluck(*args) DeepPluck::Model.new(self).add(args).load_all end |
#ta_pluck(*attribute_names) ⇒ Object
12 13 14 15 |
# File 'lib/deep_pluck.rb', line 12 def ta_pluck(*attribute_names) args = DeepPluck::Config.attribute_names_to_args(attribute_names) deep_pluck(*args) end |