Class: ActionDispatch::Routing::Mapper

Inherits:
Object
  • Object
show all
Defined in:
lib/activeadmin-settings/routing.rb

Instance Method Summary collapse

Instance Method Details

#mount_activeadmin_settingsObject



3
4
5
6
7
8
9
10
11
# File 'lib/activeadmin-settings/routing.rb', line 3

def mount_activeadmin_settings
  scope '/admin', :module => "ActiveadminSettings" do
    scope "redactor" do
      resources :pictures,  :only => [:index, :create]
    end
    resources :settings,    :only => [:update]
    resources :admin_users, :only => [:create, :update, :destroy]
  end
end