lib/morpheus/mixins/finders.rb in morpheus-0.3.9 vs lib/morpheus/mixins/finders.rb in morpheus-0.4.0
- old
+ new
@@ -24,9 +24,13 @@
attributes = UrlBuilder.find_some(self, args.sort).push({ :ids => args })
get(*attributes)
end
end
+ def scoped
+ Relation.new(self)
+ end
+
def all
attributes = [UrlBuilder.find_all(self), nil, {}]
get(*attributes)
end