lib/surrounded/context/trigger_controls.rb in surrounded-1.0.0 vs lib/surrounded/context/trigger_controls.rb in surrounded-1.1.0
- old
+ new
@@ -52,11 +52,11 @@
end
end
def define_trigger(name)
line = __LINE__; self.class_eval %{
- def #{name}(*args, &block)
+ def #{name}(...)
begin
apply_behaviors
#{trigger_return_content(name)}
@@ -69,11 +69,11 @@
def trigger_return_content(name)
if method_defined?(name)
%{super}
else
- %{self.send("__trigger_#{name}", *args, &block)}
+ %{self.send("__trigger_#{name}", ...)}
end
end
def define_trigger_action(*name_and_args, &block)
@@ -83,6 +83,6 @@
def trigger_action_module
self.const_get('TriggerMethods', false)
end
end
end
-end
\ No newline at end of file
+end