lib/acts_as_messageable/scopes.rb
Method initialize_scopes
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize_scopes(search_scope)
scope :are_from, lambda { |*args|
where(sent_messageable_id: args.first, sent_messageable_type: args.first.class.name)
}
scope :are_to, lambda { |*args|