method
references
v5.1.7 -
Show latest stable
- Class:
ActiveRecord::PredicateBuilder
references(attributes)public
No documentation available.
# File activerecord/lib/active_record/relation/predicate_builder.rb, line 37
def self.references(attributes)
attributes.map do |key, value|
if value.is_a?(Hash)
key
else
key = key.to_s
key.split(".".freeze).first if key.include?(".".freeze)
end
end.compact
end