Update archives_controller.rb
This commit is contained in:
parent
e3ce0c91fb
commit
dacaf2a18d
|
@ -1,6 +1,5 @@
|
||||||
class ArchivesController < ApplicationController
|
class ArchivesController < ApplicationController
|
||||||
def index
|
def index
|
||||||
begin
|
|
||||||
#the first 7 lines are write to avoid the categories to be not in the ArchiveCategory
|
#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 = ModuleApp.where(:key => "archive").first.categories
|
||||||
categories_temp.each do |category|
|
categories_temp.each do |category|
|
||||||
|
@ -194,9 +193,6 @@ class ArchivesController < ApplicationController
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
rescue => e
|
|
||||||
puts e
|
|
||||||
end
|
|
||||||
{
|
{
|
||||||
"categories" => cats_last
|
"categories" => cats_last
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue