diff options
author | Yehuda Katz <wycats@gmail.com> | 2009-07-19 22:12:15 +0900 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2009-07-19 22:31:44 +0900 |
commit | 0f2914be405410e824b40dcff28e5dfa541bdb2a (patch) | |
tree | 5d29a561a0ab34a0b56d2bb8e90668d03c9934d7 /actionpack/lib/action_view/template/renderable.rb | |
parent | bb530923bcd5c643f9bfca8e36cd3fa36365032d (diff) | |
download | rails-0f2914be405410e824b40dcff28e5dfa541bdb2a.tar.gz rails-0f2914be405410e824b40dcff28e5dfa541bdb2a.tar.bz2 rails-0f2914be405410e824b40dcff28e5dfa541bdb2a.zip |
Separate ActionView::Context so something else can easily be made into an AV context
Diffstat (limited to 'actionpack/lib/action_view/template/renderable.rb')
-rw-r--r-- | actionpack/lib/action_view/template/renderable.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_view/template/renderable.rb b/actionpack/lib/action_view/template/renderable.rb index 54857516ab..7687578165 100644 --- a/actionpack/lib/action_view/template/renderable.rb +++ b/actionpack/lib/action_view/template/renderable.rb @@ -12,9 +12,9 @@ module ActionView end def load! - names = Base::CompiledTemplates.instance_methods.grep(/#{method_name_without_locals}/) + names = CompiledTemplates.instance_methods.grep(/#{method_name_without_locals}/) names.each do |name| - Base::CompiledTemplates.class_eval do + CompiledTemplates.class_eval do remove_method(name) end end @@ -56,7 +56,7 @@ module ActionView def compile(local_assigns) render_symbol = method_name(local_assigns) - if !Base::CompiledTemplates.method_defined?(render_symbol) || recompile? + if !CompiledTemplates.method_defined?(render_symbol) || recompile? compile!(render_symbol, local_assigns) end end @@ -74,7 +74,7 @@ module ActionView end_src begin - ActionView::Base::CompiledTemplates.module_eval(source, filename.to_s, 0) + ActionView::CompiledTemplates.module_eval(source, filename.to_s, 0) rescue Exception => e # errors from template code if logger = defined?(ActionController) && Base.logger logger.debug "ERROR: compiling #{render_symbol} RAISED #{e}" |