Sha256: 9e80d834031754760dcae5a5b0cd3ae7c4a76d7660029d4c77c60e42d575a509

Contents?: true

Size: 1.28 KB

Versions: 13

Compression:

Stored size: 1.28 KB

Contents

class ActionDispatch::Routing::Mapper

  def cms_fortress_routes(options = {})
    path = options[:path] || "cms-admin"

    devise_for "cms/fortress/users",
      :path => path,
      :path_names => {
        :sign_in => 'login', :sign_out => 'logout'
      },
      :controllers => {
        :sessions => 'cms/fortress/users/sessions',
        :passwords => 'cms/fortress/users/passwords'
      }

    scope path, module: 'cms/fortress' do
      resources :roles, :as => 'cms_fortress_roles' do
        member do
          post :refresh
        end
      end

      resources :users, :except => :show, :as => 'cms_fortress_users' do
        collection do
          get :super
          get "super/new", action: "new_super"
        end
      end

      get 'settings/users' => 'admin#users', as: 'cms_fortress_user_settings'
      get 'unauthorised' => 'admin#unauthorised', as: 'cms_fortress_unauthorised'

      get 'sites/:site_id/files/images' => 'admin#images', as: 'cms_fortress_files_images'
      get 'sites/:site_id/files/videos' => 'admin#videos', as: 'cms_fortress_files_videos'
      get 'sites/:site_id/files/others' => 'admin#other_files', as: 'cms_fortress_files_others'

      # Site Resource routes
      get 'site/dashboard' => 'admin#dashboard', as: 'dashboard_site'
    end

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
cms-fortress-1.3.15 lib/cms/fortress/routes/admin.rb
cms-fortress-1.3.14 lib/cms/fortress/routes/admin.rb
cms-fortress-1.3.13 lib/cms/fortress/routes/admin.rb
cms-fortress-1.3.12 lib/cms/fortress/routes/admin.rb
cms-fortress-1.3.11 lib/cms/fortress/routes/admin.rb
cms-fortress-1.3.10 lib/cms/fortress/routes/admin.rb
cms-fortress-1.3.9 lib/cms/fortress/routes/admin.rb
cms-fortress-1.3.8 lib/cms/fortress/routes/admin.rb
cms-fortress-1.3.7 lib/cms/fortress/routes/admin.rb
cms-fortress-1.3.6 lib/cms/fortress/routes/admin.rb
cms-fortress-1.3.5 lib/cms/fortress/routes/admin.rb
cms-fortress-1.3.4 lib/cms/fortress/routes/admin.rb
cms-fortress-1.3.3 lib/cms/fortress/routes/admin.rb