class ActiveRecord::DynamicMatchers::ScopedBy
Public Class Methods
Source
# File lib/active_record/deprecated_finders/dynamic_matchers.rb, line 112 def self.prefix "scoped_by" end
Public Instance Methods
Source
# File lib/active_record/deprecated_finders/dynamic_matchers.rb, line 116 def body "#{deprecation_warning} \n where(#{attributes_hash})" end
Source
# File lib/active_record/deprecated_finders/dynamic_matchers.rb, line 120 def deprecation_alternative "Post.where(...)" end