module Cubscout::Scopes
The Scopes
module allows for Active Record kind of queries like .all and .find this module is included in Object
, meaning that every subclass of Object
can call the Scopes
ClassMethods
. @example
class Foo < Object; end Foo.find(id) Foo.all(page: 1)
Public Class Methods
included(mod)
click to toggle source
# File lib/cubscout/scopes.rb, line 74 def self.included(mod) mod.extend ClassMethods end