lib/hobo/model/scopes/apply_scopes.rb in hobo-2.0.1 vs lib/hobo/model/scopes/apply_scopes.rb in hobo-2.1.0.pre1

- old
+ new

@@ -2,15 +2,15 @@ module Model module Scopes module ApplyScopes def apply_scopes(scopes) - result = scoped + result = self scopes.each_pair do |scope, arg| if arg.is_a?(Array) - result = result.send(scope, *arg) unless arg.first.blank? + result = self.send(scope, *arg) unless arg.first.blank? else - result = result.send(scope, arg) unless arg.blank? + result = self.send(scope, arg) unless arg.blank? end end result end