forked from bofh/fetsite
AutoCommit Mon Jun 15 17:03:08 CEST 2015
This commit is contained in:
@@ -20,14 +20,16 @@ class CrawlerController < ApplicationController
|
||||
end
|
||||
end
|
||||
def move_to_news
|
||||
authorize! :doadmin, User
|
||||
|
||||
authorize! :doadmin, User
|
||||
co=Crawlobject.find(params[: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
|
||||
def do_crawl_news
|
||||
Crawlobject.crawl_news(5)
|
||||
Crawlobject.crawl_news(6)
|
||||
redirect_to action: :index
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user