Method: Neo4j::ActiveNode::Query::QueryProxyEnumerable#pluck
- Defined in:
- lib/neo4j/active_node/query/query_proxy_enumerable.rb
#pluck(*args) ⇒ Object
For getting variables which have been defined as part of the association chain
75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/neo4j/active_node/query/query_proxy_enumerable.rb', line 75 def pluck(*args) transformable_attributes = (model ? model.attribute_names : []) + %w(uuid neo_id) arg_list = args.map do |arg| if transformable_attributes.include?(arg.to_s) {identity => arg} else arg end end self.query.pluck(*arg_list) end |