lib/activity_engine.rb in activity_engine-0.0.6 vs lib/activity_engine.rb in activity_engine-0.0.7

- old
+ new

@@ -4,11 +4,11 @@ def register_models(*models) ActivitySweeper.observe(*models) end def register_controller(controller_name, actions) - controller_name.constantize.module_exec(actions) do - cache_sweeper ActivitySweeper, only: actions + controller_name.constantize.module_exec(actions) do |swept_actions| + cache_sweeper ActivitySweeper, only: swept_actions end end def register(class_name, method_name, activity_receiver = Activity, &config_block) context_builder = ContextBuilder.new(class_name, method_name)