Module: Erbac::ActionControllerSupport

Defined in:
lib/erbac/action_controller_support.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
# File 'lib/erbac/action_controller_support.rb', line 3

def self.included(base)
	base.extend ClassMethods
	base.helper_method :check_access
end

Instance Method Details

#check_accessObject



8
9
10
# File 'lib/erbac/action_controller_support.rb', line 8

def check_access
	p "checked!"
end