Method: ActsAs::ClassMethods#acts_as_fields_match

Defined in:
lib/acts_as.rb

#acts_as_fields_match(method) ⇒ Object



54
55
56
57
58
# File 'lib/acts_as.rb', line 54

def acts_as_fields_match(method)
  acts_as_fields.select do |association, fields|
    fields.select { |f| method.to_s.include?(f) }.any?
  end.keys.first
end