Class/Module Index [+]

Quicksearch

CrawlerController

Public Instance Methods

do_crawl_news() click to toggle source
# File app/controllers/crawler_controller.rb, line 31
def do_crawl_news
  Crawlobject.crawl_news(5)
  Crawlobject.crawl_news(6)
  redirect_to action: :index
end
index() click to toggle source
# File app/controllers/crawler_controller.rb, line 3
def index
  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
load_attachments() click to toggle source
# File app/controllers/crawler_controller.rb, line 10
def load_attachments
  authorize! :doadmin, User
  
  c = Crawlobject.find(params[:id])
  if c.has_attachments?
  c.load_attachments
  end
  respond_to do |format|
    format.html {redirect_to c.something}
    format.js
  end
end
move_to_news() click to toggle source
# File app/controllers/crawler_controller.rb, line 22
def move_to_news
  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

[Validate]

Generated with the Darkfish Rdoc Generator 2.