lib/simpleadmin/routes.rb in simpleadmin-1.2.7 vs lib/simpleadmin/routes.rb in simpleadmin-1.3.0

- old
+ new

@@ -1,27 +1,15 @@ 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 :entities, only: %i[index show] resources :entity_field_type_actions, only: :create - resources :resources - - get 'resource_show_by', to: 'resources#show_by' - get 'resource_show_total', to: 'resources#show_total' + resources :resources do + get :show_by, on: :collection + get :show_total, on: :collection + end get 'version', to: 'versions#show' end end end