Sha256: 1ab62e17838ebf8c643d2ccab31ecbcbc6440ddaa5103b39145a71a6f0c8316c
Contents?: true
Size: 610 Bytes
Versions: 3
Compression:
Stored size: 610 Bytes
Contents
module Commontator class ApplicationController < ActionController::Base before_filter :get_user protected def get_user @user = send Commontator.current_user_method raise SecurityTransgression unless (@user.nil? || @user.is_commontator) end def get_thread @thread = params[:thread_id].blank? ? \ Commontator::Thread.find(params[:id]) : \ Commontator::Thread.find(params[:thread_id]) end def get_commontable_url @commontable_url = @thread.config.commontable_url_proc.call(main_app, @thread.commontable) end end end
Version data entries
3 entries across 3 versions & 1 rubygems