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

Version Path
ffcrm_cloudfuji-0.3.1 config/routes.rb
ffcrm_cloudfuji-0.3.0 config/routes.rb
ffcrm_cloudfuji-0.2.11 config/routes.rb
ffcrm_cloudfuji-0.2.10 config/routes.rb
ffcrm_cloudfuji-0.2.9 config/routes.rb
ffcrm_cloudfuji-0.2.8 config/routes.rb
ffcrm_cloudfuji-0.2.7 config/routes.rb
ffcrm_cloudfuji-0.2.6 config/routes.rb
ffcrm_cloudfuji-0.2.5 config/routes.rb
ffcrm_cloudfuji-0.2.4 config/routes.rb
ffcrm_cloudfuji-0.2.3 config/routes.rb
ffcrm_cloudfuji-0.2.2 config/routes.rb