module ActionDispatch::Routing class RouteSet #:nodoc: Mapper.class_eval do def bushido_routes puts "ADDING THE MOTHERFUCKING ROUTES" Rails.application.routes.draw do namespace 'bushido' do resources :envs, :only => [ :update ] match '/data' => "data#index" end end end end end end