public
Fork of rails/rails
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/josh/rails.git
Search Repo:
Ensure ActionView::PathSet::Path is not initialized with a precompiled 
path
josh (author)
Sat Jul 19 13:27:55 -0700 2008
commit  55bfe6be52da1130abb1c148f10d8e9a11368ffd
tree    34b0e675b2fb772326f99488435d5bdc48e31c12
parent  1b4b1aa725a4f44c3473ae99b36d7cededba2bea
...
426
427
428
429
 
 
430
431
432
...
426
427
428
 
429
430
431
432
433
0
@@ -426,7 +426,8 @@ module ActionMailer #:nodoc:
0
       end
0
 
0
       def template_root=(root)
0
- write_inheritable_attribute(:template_root, ActionView::PathSet::Path.new(root))
0
+ root = ActionView::PathSet::Path.new(root) if root.is_a?(String)
0
+ write_inheritable_attribute(:template_root, root)
0
       end
0
     end
0
 
...
28
29
30
 
 
31
32
33
...
28
29
30
31
32
33
34
35
0
@@ -28,6 +28,8 @@ module ActionView #:nodoc:
0
       delegate :to_s, :to_str, :inspect, :to => :path
0
 
0
       def initialize(path)
0
+ raise ArgumentError, "path already is a Path class" if path.is_a?(Path)
0
+
0
         @path = path.freeze
0
         reload!
0
       end

Comments

    No one has commented yet.