Sha256: f91a907eacb1a2caba3d6fba0055176226c5b3d9a534940742a7e15b44916166

Contents?: true

Size: 731 Bytes

Versions: 16

Compression:

Stored size: 731 Bytes

Contents

Adminsite::Engine.routes.draw do
  devise_for :adminsite_admin_user, class_name: 'Adminsite::AdminUser',
             :controllers => { :sessions => "adminsite/admin_user_sessions" }

  namespace Adminsite.config.admin_namespace, as: :admin, module: :admin do
    Adminsite.register_routes(self)

    root      :to => 'adminsite_pages#index'
  end

  get '/:page_url(.:format)(/:id)' => 'contents#show',
      :constraints => lambda { |req|
                                Adminsite::ContentsController.find_page_by_url(req.params[:page_url], req.params[:format]).present? &&
                                 ( req.params[:id].nil? || req.params[:id].try(:match, /\A[0-9a-zA-Z]*\z/).present? )
                              }

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
adminsite-3.2.4 config/routes.rb
adminsite-3.2.3 config/routes.rb
adminsite-3.2.2 config/routes.rb
adminsite-3.2.1 config/routes.rb
adminsite-3.2.0 config/routes.rb
adminsite-3.1.2 config/routes.rb
adminsite-3.1.1 config/routes.rb
adminsite-3.1.0 config/routes.rb
adminsite-3.0.0 config/routes.rb
adminsite-2.1.2 config/routes.rb
adminsite-2.1.1 config/routes.rb
adminsite-2.1.0 config/routes.rb
adminsite-2.0.3 config/routes.rb
adminsite-2.0.2 config/routes.rb
adminsite-2.0.1 config/routes.rb
adminsite-2.0.0 config/routes.rb