class ActionDispatch::Routing::Mapper
Public Instance Methods
draw_routes()
click to toggle source
def draw(routes_name)
instance_eval(File.read(Rails.root.join("config/routes/#{routes_name}.rb")))
end
# File lib/action_dipatch/routing/mapper.rb, line 6 def draw_routes Dir.glob("#{Rails.root}/config/routes/**/*.rb").each do |route| instance_eval(File.read(route)) end end