class ActionDispatch::Routing::Mapper

Public Instance Methods

draw(routes_name) click to toggle source

Use this method to add routes from separate files

# File lib/multiple_routes/initializers/core_ext.rb, line 3
def draw(routes_name)
        instance_eval(File.read(Rails.root.join("config/routes/#{routes_name}.rb")))
end