Sha256: cf187537c37765c1ed94b492e3ce9910c0aec32213df9eca6b39bf907b765b70
Contents?: true
Size: 398 Bytes
Versions: 28
Compression:
Stored size: 398 Bytes
Contents
module Hobo module Scopes module ApplyScopes def apply_scopes(scopes) result = self scopes.each_pair do |scope, arg| if arg.is_a?(Array) result = result.send(scope, *arg) unless arg.first.blank? else result = result.send(scope, arg) unless arg.blank? end end result end end end end
Version data entries
28 entries across 28 versions & 1 rubygems