Changeset 5544
- Timestamp:
- 11/17/06 13:10:23 (2 years ago)
- Files:
-
- trunk/actionpack/CHANGELOG (modified) (1 diff)
- trunk/actionpack/lib/action_controller/caching.rb (modified) (1 diff)
- trunk/actionpack/lib/action_view/base.rb (modified) (1 diff)
- trunk/actionpack/lib/action_view/helpers/capture_helper.rb (modified) (3 diffs)
- trunk/actionpack/lib/action_view/helpers/text_helper.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/CHANGELOG
r5536 r5544 1 1 *SVN* 2 2 3 * Deprecate standalone components. [Jeremy Kemper]3 * ActionView::Base.erb_variable accessor names the buffer variable used to render templates. Defaults to _erbout; use _buf for erubis. [Rick Olson] 4 4 5 5 * assert_select_rjs :remove. [Dylan Egan] trunk/actionpack/lib/action_controller/caching.rb
r5412 r5544 331 331 unless perform_caching then block.call; return end 332 332 333 buffer = eval( "_erbout", block.binding)333 buffer = eval(ActionView::Base.erb_variable, block.binding) 334 334 335 335 if cache = read_fragment(name, options) trunk/actionpack/lib/action_view/base.rb
r5411 r5544 184 184 @@debug_rjs = false 185 185 cattr_accessor :debug_rjs 186 187 @@erb_variable = '_erbout' 188 cattr_accessor :erb_variable 186 189 187 190 @@template_handlers = HashWithIndifferentAccess.new trunk/actionpack/lib/action_view/helpers/capture_helper.rb
r5335 r5544 57 57 # execute the block 58 58 begin 59 buffer = eval( "_erbout", block.binding)59 buffer = eval(ActionView::Base.erb_variable, block.binding) 60 60 rescue 61 61 buffer = nil … … 63 63 64 64 if buffer.nil? 65 capture_block(*args, &block) 65 capture_block(*args, &block).to_s 66 66 else 67 capture_erb_with_buffer(buffer, *args, &block) 67 capture_erb_with_buffer(buffer, *args, &block).to_s 68 68 end 69 69 end … … 100 100 101 101 def capture_erb(*args, &block) 102 buffer = eval( "_erbout", block.binding)102 buffer = eval(ActionView::Base.erb_variable, block.binding) 103 103 capture_erb_with_buffer(buffer, *args, &block) 104 104 end trunk/actionpack/lib/action_view/helpers/text_helper.rb
r5431 r5544 24 24 # <%= "hello" %> 25 25 def concat(string, binding) 26 eval( "_erbout", binding).concat(string)26 eval(ActionView::Base.erb_variable, binding) << string 27 27 end 28 28