Class: ActiveRecord::DynamicMatchers::FindLastBy
Class Method Summary
collapse
Instance Method Summary
collapse
#body, #deprecation_warning
#body, #signature
Class Method Details
.prefix ⇒ Object
90
91
92
|
# File 'lib/active_record/deprecated_finders/dynamic_matchers.rb', line 90
def self.prefix
"find_last_by"
end
|
Instance Method Details
#deprecation_alternative ⇒ Object
102
103
104
|
# File 'lib/active_record/deprecated_finders/dynamic_matchers.rb', line 102
def deprecation_alternative
"Post.where(...).last"
end
|
#finder ⇒ Object
94
95
96
|
# File 'lib/active_record/deprecated_finders/dynamic_matchers.rb', line 94
def finder
"where"
end
|
#result ⇒ Object
98
99
100
|
# File 'lib/active_record/deprecated_finders/dynamic_matchers.rb', line 98
def result
"#{super}.last"
end
|