Class: ActionDispatch::Routing::Mapper

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

Instance Method Summary collapse

Instance Method Details

#params(*args) ⇒ Object


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

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

#pluginsObject

This methods adds all plugin routes


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

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