diff options
-rw-r--r-- | lib/zorglub/node.rb | 2 | ||||
-rw-r--r-- | spec/spec_helper.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb index f2aaa72..4e09a7c 100644 --- a/lib/zorglub/node.rb +++ b/lib/zorglub/node.rb @@ -137,7 +137,7 @@ module Zorglub end # def view view=nil - @action[:view] = view unless view.nil? or view.empty? + @action[:view] = r(view) unless view.nil? or view.empty? return '' if @action[:view].nil? File.join(Config.view_base_path, @action[:view])+Config.engine_ext(@action[:engine]) end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 43c8af2..4c86527 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -54,7 +54,7 @@ class Node0 < Zorglub::Node end def other_view engine 'real' - view 'do_partial' + view r('do_partial') end end # |