Sha256: efe02589e59cc1f8a80f45165cbcb7194d456a066fc65ba9f08c68de376c8297

Contents?: true

Size: 482 Bytes

Versions: 3

Compression:

Stored size: 482 Bytes

Contents

Rails.application.routes.draw do
  scope module: :simple_admin do
    namespace :admin do
      root 'system/users#index'

      get :search, to: 'search#index'

      if ActiveRecord::Base.connection.table_exists?(:simple_admin_entities)
        SimpleAdmin.mount_entities!(self)
      end

      namespace :system do
        resources :entities
        resources :entity_field_types
        resources :entity_fields, only: [:create, :update, :destroy]
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simple-admin-0.1.2.pre.alpha config/routes.rb
simple-admin-0.1.1.pre.alpha config/routes.rb
simple-admin-0.1.0.pre.alpha config/routes.rb