public
Description: Merb More: The Full Stack. Take what you need; leave what you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-more.git
Unified _template_root inheritance
fabien (author)
Sun Jun 08 07:43:06 -0700 2008
commit  23c2f3be43504280847f3301f7ece23a0c8af216
tree    cf215abe69904beb4c77c2ca09ad55b6990e81c3
parent  99caf5a881dab9f01501bd09c0578b2d6aab0324
...
126
127
128
129
 
130
131
132
...
126
127
128
 
129
130
131
132
0
@@ -126,7 +126,7 @@ module Merb
0
     # The Merb::MailController inheriting from the base class.
0
     def self.inherited(klass)
0
       super
0
- klass.class_eval %{self._template_root = Merb.dir_for(:mailer) / "views"}
0
+ klass._template_root = Merb.dir_for(:mailer) / "views" unless self._template_root
0
     end
0
 
0
     # Override filters halted to return nothing.
...
59
60
61
62
 
63
64
65
...
59
60
61
 
62
63
64
65
0
@@ -59,7 +59,7 @@ module Merb
0
     def self.inherited(klass)
0
       _subclasses << klass.to_s
0
       super
0
- self._template_root = Merb.dir_for(:part) / "views" unless self._template_root
0
+ klass._template_root = Merb.dir_for(:part) / "views" unless self._template_root
0
     end
0
 
0
     # ==== Parameters

Comments

    No one has commented yet.