public
Description: A Rails plugin that lets you embed actions in your views (with caching and response_to support)
Homepage: http://github.com/sd/embedded-actions/wikis/home
Clone URL: git://github.com/sd/embedded-actions.git
 r56@chuao:  sd | 2007-08-01 16:51:37 -0400
 Default embedded options


git-svn-id: 
https://dev.notso.net/svn/rails/plugins/embedded_actions/trunk@121 
71bf3dff-0d17-0410-8985-d5c41cf5d41c
sd (author)
Wed Aug 01 13:51:59 -0700 2007
commit  1ee0b3383dc30c14d8d6594edf381faa0abca34c
tree    9d7a832c510e7e98f547c39d2258ad2f72f30c26
parent  16a53c641d30d1b4709c6e2d7cc61eada1e5df7f
...
1
2
3
 
4
5
6
7
 
8
9
10
...
1
2
3
4
5
6
7
8
9
10
11
12
0
@@ -1,10 +1,12 @@
0
 require 'embedded_actions/detect_rescue_action'
0
 require 'embedded_actions/embed_action'
0
 require 'embedded_actions/caches_embedded'
0
+require 'embedded_actions/default_embedded_options'
0
 
0
 class ActionController::Base
0
   include ::ActionController::EmbeddedActions
0
   include ::ActionController::CachesEmbedded
0
+ include ::ActionController::DefaultEmbeddedOptions
0
 end
0
 
0
 Mime::Type.register "application/x-embedded_action", :embedded
...
8
9
10
11
12
 
13
14
15
...
8
9
10
 
 
11
12
13
14
0
@@ -8,8 +8,7 @@ module ActionController
0
       base.extend(ClassMethods)
0
 
0
       base.class_eval do
0
- alias_method :embed_action_as_string_without_caching, :embed_action_as_string
0
- alias_method :embed_action_as_string, :embed_action_as_string_with_caching
0
+ alias_method_chain :embed_action_as_string, :caching
0
       end
0
     end
0
     

Comments

    No one has commented yet.