Sha256: b345f503c837d67cd04962b7803eb51b207cb46bf093673d435174233cb6fa8b

Contents?: true

Size: 460 Bytes

Versions: 1

Compression:

Stored size: 460 Bytes

Contents

module ActionDispatch::Routing
  class Mapper
    # Contain built-in routes
    #
    # @example
    #
    #   # config/routes.rb
    #
    #   Rails.application.routes.draw do
    #     mount_for_simple_admin
    #   end
    #
    # @since 1.0.0

    def mount_simpleadmin
      namespace :simple_admin do
        resources :entities,  only: [:index, :show]
        resources :resources

        get 'version', to: 'versions#show'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simpleadmin-1.1.0 lib/simpleadmin/routes.rb