Permalink
Browse files

Move the declaration of the compilation related cattr_accessors to co…

…mpilable. Closes #10959 [lifofifo]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8756 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 05707a4 commit 1ba5fc745bbe4ad9dacbfe6aa41138ec68540cc7 @NZKoz NZKoz committed Jan 30, 2008
@@ -1,16 +1,5 @@
module ActionView
class TemplateHandler
- # Map method names to their compile time
- cattr_accessor :compile_time
- @@compile_time = {}
-
- # Map method names to the names passed in local assigns so far
- cattr_accessor :template_args
- @@template_args = {}
-
- # Count the number of inline templates
- cattr_accessor :inline_template_count
- @@inline_template_count = 0
def self.line_offset
0
@@ -4,6 +4,18 @@ module Compilable
def self.included(base)
base.extend ClassMethod
+
+ # Map method names to their compile time
+ base.cattr_accessor :compile_time
+ base.compile_time = {}
+
+ # Map method names to the names passed in local assigns so far
+ base.cattr_accessor :template_args
+ base.template_args = {}
+
+ # Count the number of inline templates
+ base.cattr_accessor :inline_template_count
+ base.inline_template_count = 0
end
module ClassMethod

0 comments on commit 1ba5fc7

Please sign in to comment.