Module: Releaf::Content::NodeMapper

Defined in:
lib/releaf/content/node_mapper.rb

Instance Method Summary collapse

Instance Method Details

#releaf_routes_for(node_class, controller: Releaf::Content::Route.node_class_default_controller(node_class), &block) ⇒ Object



3
4
5
6
7
# File 'lib/releaf/content/node_mapper.rb', line 3

def releaf_routes_for(node_class, controller: Releaf::Content::Route.node_class_default_controller(node_class), &block)
  Releaf::Content::Route.for(node_class, controller).each do |route|
    Releaf::Content::RouterProxy.new(self, route).draw(&block)
  end
end