module ActiveRecord::DynamicMatchers::Finder

Public Instance Methods

attributes_hash() click to toggle source
# File lib/active_record/dynamic_matchers.rb, line 92
def attributes_hash
  "{" + attribute_names.map { |name| ":#{name} => #{name}" }.join(',') + "}"
end
body() click to toggle source

Extended in activerecord-deprecated_finders

# File lib/active_record/dynamic_matchers.rb, line 78
def body
  result
end
finder() click to toggle source
# File lib/active_record/dynamic_matchers.rb, line 96
def finder
  raise NotImplementedError
end
result() click to toggle source

Extended in activerecord-deprecated_finders

# File lib/active_record/dynamic_matchers.rb, line 83
def result
  "#{finder}(#{attributes_hash})"
end
signature() click to toggle source

Extended in activerecord-deprecated_finders

# File lib/active_record/dynamic_matchers.rb, line 88
def signature
  attribute_names.join(', ')
end