Move the declaration of the compilation related cattr_accessors to compilable. Closes #10959 [lifofifo]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8756 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Michael Koziarski
2008-01-30 21:09:32 +00:00
parent 05707a436b
commit 1ba5fc745b
2 changed files with 12 additions and 11 deletions

View File

@@ -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

View File

@@ -4,6 +4,18 @@ module ActionView
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