Class: ActiveRecord::DynamicMatchers::FindAllBy
Class Method Summary
collapse
Instance Method Summary
collapse
#body, #deprecation_warning
#body, #signature
Class Method Details
.prefix ⇒ Object
67
68
69
|
# File 'lib/active_record/deprecated_finders/dynamic_matchers.rb', line 67
def self.prefix
"find_all_by"
end
|
Instance Method Details
#deprecation_alternative ⇒ Object
79
80
81
|
# File 'lib/active_record/deprecated_finders/dynamic_matchers.rb', line 79
def deprecation_alternative
"Post.where(...).all"
end
|
#finder ⇒ Object
71
72
73
|
# File 'lib/active_record/deprecated_finders/dynamic_matchers.rb', line 71
def finder
"where"
end
|
#result ⇒ Object
75
76
77
|
# File 'lib/active_record/deprecated_finders/dynamic_matchers.rb', line 75
def result
"#{super}.to_a"
end
|