Update archive_files_controller.rb
This commit is contained in:
parent
74301f69a6
commit
86da89fd24
|
@ -1,6 +1,6 @@
|
||||||
class Admin::ArchiveFilesController < OrbitAdminController
|
class Admin::ArchiveFilesController < OrbitAdminController
|
||||||
def show
|
def show
|
||||||
module_pages = Page.where(:module => 'archive').collect{|p| [p.name,p.url] }
|
module_pages = Page.where(:module => 'archive').collect{|p| p.url}[0]
|
||||||
redirect_to '/' + I18n.locale.to_s + module_pages
|
redirect_to '/' + I18n.locale.to_s + module_pages
|
||||||
end
|
end
|
||||||
def index
|
def index
|
||||||
|
|
Loading…
Reference in New Issue