Module: PyrRules::ControllerEventEmitter

Defined in:
app/rules/pyr_rules/controller_event_emitter.rb

Constant Summary collapse

@@registered_classes =
[]

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
8
9
10
11
12
# File 'app/rules/pyr_rules/controller_event_emitter.rb', line 6

def self.included(base)
	#base.send :extend, ClassMethods
	#unless ( File.basename($0) == "rake" && ARGV.include?("db:migrate") )
	#end
	base.around_filter :raise_controller_event
	@@registered_classes << base if !@@registered_classes.index(base)
end

.registered_classesObject



14
15
16
# File 'app/rules/pyr_rules/controller_event_emitter.rb', line 14

def self.registered_classes
	@@registered_classes
end