class ActionDispatch::Routing::Mapper
Public Instance Methods
enjoy_cms_routes(config = {})
click to toggle source
# File lib/enjoy/routes.rb, line 4 def enjoy_cms_routes(config = {}) routes_config = { root_path: "home#index" } routes_config.merge!(config) scope module: 'enjoy' do if routes_config[:root_path] root to: routes_config[:root_path] end end end