提交 1ba5fc74 编写于 作者: M Michael Koziarski

Move the declaration of the compilation related cattr_accessors to compilable....

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
上级 05707a43
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册