Module: CanTango::Ability::Executor::Base::ClassMethods

Included in:
CanTango::Ability::Executor::Base
Defined in:
lib/cantango/ability/executor/base.rb

Instance Method Summary collapse

Instance Method Details

#build(candidate, options = {}) ⇒ Object



19
20
21
# File 'lib/cantango/ability/executor/base.rb', line 19

def build candidate, options = {}
  self.new build_ability(candidate, options), options
end

#inherited(base) ⇒ Object



23
24
25
26
27
28
# File 'lib/cantango/ability/executor/base.rb', line 23

def inherited(base)
  base.send :include, CanTango::Helpers::Debug
  base.send :include, CanTango::Ability::Executor
  base.send :include, CanTango::Ability::Rules
  base.send :include, CanTango::Ability::Callbacks
end