Sha256: 68ade43665990aab96622830161b603fbed8492822c09f70581a0b16bc5665de
Contents?: true
Size: 670 Bytes
Versions: 2
Compression:
Stored size: 670 Bytes
Contents
module Commontator class ApplicationController < ActionController::Base before_filter :get_commontator protected def get_commontator @commontator = send Commontator.current_user_method raise SecurityTransgression unless (@commontator.nil? || @commontator.is_commontator) end def get_thread @thread = params[:thread_id].blank? ? \ Commontator::Thread.find(params[:id]) : \ Commontator::Thread.find(params[:thread_id]) get_commontable_url end def get_commontable_url @commontable_url = @thread.config.commontable_url_proc.call(main_app, @thread.commontable) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
commontator-0.4.1 | app/controllers/commontator/application_controller.rb |
commontator-0.3.10 | app/controllers/commontator/application_controller.rb |