diff --git a/app/controllers/archives_controller.rb b/app/controllers/archives_controller.rb index ec090f7..52f5eaf 100644 --- a/app/controllers/archives_controller.rb +++ b/app/controllers/archives_controller.rb @@ -1,6 +1,5 @@ class ArchivesController < ApplicationController def index - begin #the first 7 lines are write to avoid the categories to be not in the ArchiveCategory categories_temp = ModuleApp.where(:key => "archive").first.categories categories_temp.each do |category| @@ -194,9 +193,6 @@ class ArchivesController < ApplicationController end end end - rescue => e - puts e - end { "categories" => cats_last }