Class: ActionDispatch::Routing::Mapper

Inherits:
Object
  • Object
show all
Defined in:
lib/ekylibre/plugin/routing.rb,
lib/routing/params.rb

Instance Method Summary collapse

Instance Method Details

#params(*args) ⇒ Object


17
18
19
# File 'lib/routing/params.rb', line 17

def params(*args)
  Routes::ParamsConstraint.new(*args)
end

#pluginsObject

This methods adds all plugin routes


4
5
6
7
8
# File 'lib/ekylibre/plugin/routing.rb', line 4

def plugins
  Ekylibre::Plugin.each do |plugin|
    instance_exec &plugin.routes if plugin.routes.present?
  end
end