Class: ActionDispatch::Routing::Mapper
- Inherits:
-
Object
- Object
- ActionDispatch::Routing::Mapper
- Defined in:
- lib/rails_routes_drawer.rb
Instance Method Summary collapse
Instance Method Details
#draw(routes_name) ⇒ Object
2 3 4 |
# File 'lib/rails_routes_drawer.rb', line 2 def draw(routes_name) instance_eval(File.read(Rails.root.join("config/routes/#{routes_name}.rb"))) end |