class ActiveRecord::DynamicMatchers::FindLastBy

Public Class Methods

prefix() click to toggle source
# File lib/active_record/deprecated_finders/dynamic_matchers.rb, line 90
def self.prefix
  "find_last_by"
end

Public Instance Methods

deprecation_alternative() click to toggle source
# File lib/active_record/deprecated_finders/dynamic_matchers.rb, line 102
def deprecation_alternative
  "Post.where(...).last"
end
finder() click to toggle source
# File lib/active_record/deprecated_finders/dynamic_matchers.rb, line 94
def finder
  "where"
end
result() click to toggle source
# File lib/active_record/deprecated_finders/dynamic_matchers.rb, line 98
def result
  "#{super}.last"
end