Skip to content
This repository has been archived by the owner on Sep 9, 2021. It is now read-only.

Commit

Permalink
- made active admin to respond by root url
Browse files Browse the repository at this point in the history
  • Loading branch information
abdrasulov committed Apr 27, 2016
1 parent e607a42 commit 2c80e4c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/admin/document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
end
actions defaults: false do |doc|
item fa_icon('download'), doc.file.url, class: 'member_link'
item fa_icon('edit'), edit_admin_folder_document_path(doc.folder, doc), class: 'member_link'
item fa_icon('trash'), admin_folder_document_path(doc.folder, doc), method: :delete, class: 'member_link'
item fa_icon('edit'), edit_folder_document_path(doc.folder, doc), class: 'member_link'
item fa_icon('trash'), folder_document_path(doc.folder, doc), method: :delete, class: 'member_link'
end

end
Expand Down
6 changes: 3 additions & 3 deletions app/admin/folder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

index do
column :name do |folder|
link_to folder.name, admin_folder_documents_path(folder)
link_to folder.name, folder_documents_path(folder)
end
actions defaults: false do |folder|
item fa_icon('edit'), edit_admin_folder_path(folder), class: 'member_link'
item fa_icon('trash'), admin_folder_path(folder), method: :delete, class: 'member_link'
item fa_icon('edit'), edit_folder_path(folder), class: 'member_link'
item fa_icon('trash'), folder_path(folder), method: :delete, class: 'member_link'
end
end

Expand Down
2 changes: 1 addition & 1 deletion config/initializers/active_admin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
# config.default_namespace = false
#
# Default:
# config.default_namespace = :admin
config.default_namespace = false
#
# You can customize the settings for each namespace by using
# a namespace block. For example, to change the site title
Expand Down
1 change: 0 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Rails.application.routes.draw do
devise_for :admin_users, ActiveAdmin::Devise.config
ActiveAdmin.routes(self)
root to: 'visitors#index'
end

0 comments on commit 2c80e4c

Please sign in to comment.