mirror of
https://github.com/github/rails.git
synced 2026-02-14 16:15:16 -05:00
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:
@@ -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 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
|
||||
|
||||
Reference in New Issue
Block a user