Sha256: 9badeea718d9a7bf830261a298aab3d94ad38a91ca14ed0f51c67d04f1d1f996

Contents?: true

Size: 714 Bytes

Versions: 1

Compression:

Stored size: 714 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

  resources :unknown_emails, :only => :index do
    member do
      delete :ignore
      put    :convert
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ffcrm_cloudfuji-0.4.1 config/routes.rb