aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/abstract_controller/rendering.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-12-21 20:41:25 -0600
committerJoshua Peek <josh@joshpeek.com>2009-12-21 20:41:25 -0600
commit1de95077dc3bfc7589ca85dc31d46a1ea6db7650 (patch)
tree1d59980c564e7f917bddc4d5768c1544e971c596 /actionpack/lib/abstract_controller/rendering.rb
parent426348b48403f664cc10e8ec545b640e56c1c090 (diff)
parent2e571e8f99e5e2712c0bc2558df8d62996204b03 (diff)
downloadrails-1de95077dc3bfc7589ca85dc31d46a1ea6db7650.tar.gz
rails-1de95077dc3bfc7589ca85dc31d46a1ea6db7650.tar.bz2
rails-1de95077dc3bfc7589ca85dc31d46a1ea6db7650.zip
Merge branch 'master' of github.com:rails/rails
Conflicts: railties/test/initializer/initialize_i18n_test.rb railties/test/initializer/path_test.rb
Diffstat (limited to 'actionpack/lib/abstract_controller/rendering.rb')
-rw-r--r--actionpack/lib/abstract_controller/rendering.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/actionpack/lib/abstract_controller/rendering.rb b/actionpack/lib/abstract_controller/rendering.rb
index f4e1580977..64a8a5f241 100644
--- a/actionpack/lib/abstract_controller/rendering.rb
+++ b/actionpack/lib/abstract_controller/rendering.rb
@@ -125,8 +125,8 @@ module AbstractController
if options.key?(:text)
options[:_template] = ActionView::Template::Text.new(options[:text], format_for_text)
elsif options.key?(:inline)
- handler = ActionView::Template.handler_class_for_extension(options[:type] || "erb")
- template = ActionView::Template.new(options[:inline], "inline #{options[:inline].inspect}", handler, {})
+ handler = ActionView::Template.handler_class_for_extension(options[:type] || "erb")
+ template = ActionView::Template.new(options[:inline], "inline template", handler, {})
options[:_template] = template
elsif options.key?(:template)
options[:_template_name] = options[:template]
@@ -194,9 +194,8 @@ module AbstractController
# otherwise, process the parameter into a ViewPathSet.
def view_paths=(paths)
clear_template_caches!
- self._view_paths = paths.is_a?(ActionView::PathSet) ?
- paths : ActionView::Base.process_view_paths(paths)
+ self._view_paths = paths.is_a?(ActionView::PathSet) ? paths : ActionView::Base.process_view_paths(paths)
end
end
end
-end
+end \ No newline at end of file