Module: Ardm::ActiveRecord::Is::ClassMethods
- Defined in:
- lib/ardm/active_record/is.rb
Instance Method Summary collapse
Instance Method Details
#is(target, options = {}, &block) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/ardm/active_record/is.rb', line 10 def is(target, ={}, &block) case target when :state_machine include Ardm::ActiveRecord::Is::StateMachine is_state_machine(, &block) else STDERR.puts "TODO: #{self} is #{target.inspect}, #{.inspect}" end end |