Sha256: 0b54923f76f209500ea41527f6e1145ea1a38e4c8601972042f719581027b059

Contents?: true

Size: 959 Bytes

Versions: 5

Compression:

Stored size: 959 Bytes

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'
      }

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

      get 'settings' => 'admin#settings', :as => 'cms_fortress_settings'
      get 'design' => 'admin#design', :as => 'cms_fortress_design'
      get 'contents' => 'admin#contents', :as => 'cms_fortress_contents'
      get 'settings/users' => 'admin#users', :as => 'cms_fortress_user_settings'
      get 'unauthorised' => 'admin#unauthorised', :as => 'cms_fortress_unauthorised'

    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cms-fortress-1.1.1 lib/cms/fortress/routes/admin.rb
cms-fortress-1.1.0 lib/cms/fortress/routes/admin.rb
cms-fortress-1.0.12 lib/cms/fortress/routes/admin.rb
cms-fortress-1.0.9 lib/cms/fortress/routes/admin.rb
cms-fortress-1.0.8 lib/cms/fortress/routes/admin.rb