Module: ScopeChain

Defined in:
lib/scope_chain.rb,
lib/scope_chain/version.rb

Defined Under Namespace

Modules: RspecHelpers Classes: AssociationChain, Chain

Constant Summary collapse

VERSION =
"0.0.8"

Class Method Summary collapse

Class Method Details

.for(klass, &block) ⇒ Object



10
11
12
# File 'lib/scope_chain.rb', line 10

def self.for(klass, &block)
  Chain.new klass, &block
end

.on(instance) ⇒ Object



14
15
16
# File 'lib/scope_chain.rb', line 14

def self.on(instance)
  AssociationChain.new instance
end