Module: Ohm::Scope

Defined in:
lib/ohm/scope.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(model) ⇒ Object


3
4
5
6
7
8
9
# File 'lib/ohm/scope.rb', line 3

def self.included(model)
  unless model.const_defined?(:DefinedScopes)
    model.const_set(:DefinedScopes, Module.new)
  end

  model.extend ClassMethods
end