public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Search Repo:
Ruby 1.9 compat: workaround module_eval issue
jeremy (author)
Fri Apr 11 16:44:10 -0700 2008
commit  13e784978571b341a2783f95c1a26f4d2d4fd68e
tree    8dc79b3f51382e1d11956d1621e22fcadda7c753
parent  4364c361b599f99bc2345ce4eb2d145b07ed8a0f
...
39
40
41
42
43
44
45
46
47
 
48
49
50
...
67
68
69
 
 
 
 
 
 
70
71
72
...
39
40
41
 
 
 
 
 
 
42
43
44
45
...
62
63
64
65
66
67
68
69
70
71
72
73
0
@@ -39,12 +39,7 @@ module ActionController #:nodoc:
0
       base.class_eval do
0
         include InstanceMethods
0
         extend ClassMethods
0
-
0
- helper do
0
- def render_component(options)
0
- @controller.send!(:render_component_as_string, options)
0
- end
0
- end
0
+ helper HelperMethods
0
 
0
         # If this controller was instantiated to process a component request,
0
         # +parent_controller+ points to the instantiator of this controller.
0
@@ -67,6 +62,12 @@ module ActionController #:nodoc:
0
       end
0
     end
0
 
0
+ module HelperMethods
0
+ def render_component(options)
0
+ @controller.send!(:render_component_as_string, options)
0
+ end
0
+ end
0
+
0
     module InstanceMethods
0
       # Extracts the action_name from the request parameters and performs that action.
0
       def process_with_components(request, response, method = :perform_action, *arguments) #:nodoc:

Comments

    No one has commented yet.