Module: Orochi::ActsAsRouteable::ClassMethods

Defined in:
lib/orochi/acts_as_routeable.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_routeable(options = {}) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/orochi/acts_as_routeable.rb', line 12

def acts_as_routeable(options = {})
  metaclass = (class << self; self; end)

  belongs_to :router

  send :include, Orochi::ActsAsRouteable::InstanceMethods 
end