Sha256: b9642d22d77c7e718eb3962bb23ea132ea2ce6da89303c55d48633f75dc56961
Contents?: true
Size: 651 Bytes
Versions: 2
Compression:
Stored size: 651 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 @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~ |