lib/rtml.rb in rtml-2.0.3 vs lib/rtml.rb in rtml-2.0.4
- old
+ new
@@ -66,21 +66,9 @@
helpers.class_eval &block
new_methods = helpers.instance_methods - old_methods
controller.rtml_actions.concat new_methods
new_methods.each do |method_name|
- unless helpers.hidden_action?(method_name)
- helpers.class_eval(<<-end_code, __FILE__, __LINE__+1)
- def #{method_name}_with_ivars
- copy_ivars_from(controller)
- # Give rtml actions access to the controller's view helpers
- (class << self; self; end).send(:include, controller.response.template.helpers)
- #{method_name}_without_ivars
- end
- end_code
-
- helpers.send(:alias_method_chain, method_name, :ivars)
- end
unless helpers.hidden_action?(method_name) || controller.instance_methods.include?(method_name)
controller.add_rtml_proxy_action(method_name)
end
end
end