Sha256: 363e57677da4048c14f909800dd1538a26253f0570e98e296b7dcbbbc9b8f428

Contents?: true

Size: 520 Bytes

Versions: 2

Compression:

Stored size: 520 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: %i[index show]
        resources :entity_field_type_actions, only: :create

        resources :resources

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simpleadmin-1.2.3 lib/simpleadmin/routes.rb
simpleadmin-1.2.2 lib/simpleadmin/routes.rb