Sha256: a96c78d54b561a509273da6b28440693cf1b13bf43e726744e8ac5fa24a5de69
Contents?: true
Size: 406 Bytes
Versions: 2
Compression:
Stored size: 406 Bytes
Contents
require 'responders' module FinePrint class ApplicationController < ActionController::Base respond_to :html before_filter :get_user, :can_manage layout FinePrint.layout helper FinePrint.helpers protected def get_user @user = instance_exec &FinePrint.current_user_proc end def can_manage instance_exec @user, &FinePrint.can_manage_proc end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fine_print-2.3.1 | app/controllers/fine_print/application_controller.rb |
fine_print-2.3.0 | app/controllers/fine_print/application_controller.rb |