forked from bofh/fetsite
crawler type 6
This commit is contained in:
@@ -4,6 +4,8 @@ class CrawlerController < ApplicationController
|
||||
authorize! :doadmin, User
|
||||
|
||||
@crawlobjs=Crawlobject.where(:objtype=>5).order(:published_at).reverse_order
|
||||
@crawlobjs_etit=Crawlobject.where(:objtype=>6).order(:published_at).reverse_order
|
||||
|
||||
end
|
||||
def load_attachments
|
||||
authorize! :doadmin, User
|
||||
@@ -21,9 +23,11 @@ class CrawlerController < ApplicationController
|
||||
authorize! :doadmin, User
|
||||
|
||||
co=Crawlobject.find(params[:id])
|
||||
if co.objtype == 5
|
||||
co.move_to_neuigkeit(User.find(Rails.configuration.crawlconfig[5]["user_id"]), Rubrik.find(Rails.configuration.crawlconfig[5]["rubrik_id"]))
|
||||
if co.objtype == 5 || co.objtype==6
|
||||
co.move_to_neuigkeit(User.find(Rails.configuration.crawlconfig[co.objtype]["user_id"]), Rubrik.find(Rails.configuration.crawlconfig[co.objtype]["rubrik_id"]))
|
||||
redirect_to co.something
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user