Sha256: 8c784a83dc5b7072a000a9a1e8c4189e99db113a1951b1b031262e12a8f953cc
Contents?: true
Size: 594 Bytes
Versions: 12
Compression:
Stored size: 594 Bytes
Contents
Rails.application.routes.draw do begin cloudfuji_routes if Cloudfuji::Platform.on_cloudfuji? # Remove existing authentication routes r = Rails.application.routes r.set.routes.reject! {|r| %w(login logout).include? r.name } r.set.send "clear_cache!" # Setup cloudfuji authentication routes cloudfuji_authentication_routes end rescue => e puts "Error loading the Cloudfuji routes:" puts "#{e.inspect}" end namespace :admin do resources :event_rules, :only => :index do post :update, :on => :collection end end end
Version data entries
12 entries across 12 versions & 1 rubygems