Skip to content

Instantly share code, notes, and snippets.

View mmochan's full-sized avatar

Mike Mochan mmochan

  • Samford Valley, Queensland, Australia
View GitHub Profile
class ActionDispatch::Routing::Mapper
def draw(routes_name)
instance_eval(File.read(Rails.root.join("config/routes/#{routes_name}.rb")))
end
end
BCX::Application.routes.draw do
draw :api
draw :account
draw :session