Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 8756

Show
Ignore:
Timestamp:
01/30/08 21:09:32 (7 months ago)
Author:
nzkoz
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_view/template_handler.rb

    r8689 r8756  
    11module ActionView 
    22  class TemplateHandler 
    3     # Map method names to their compile time 
    4     cattr_accessor :compile_time 
    5     @@compile_time = {} 
    6  
    7     # Map method names to the names passed in local assigns so far 
    8     cattr_accessor :template_args 
    9     @@template_args = {} 
    10  
    11     # Count the number of inline templates 
    12     cattr_accessor :inline_template_count 
    13     @@inline_template_count = 0 
    143 
    154    def self.line_offset 
  • trunk/actionpack/lib/action_view/template_handlers/compilable.rb

    r8744 r8756  
    55      def self.included(base) 
    66        base.extend ClassMethod 
     7 
     8        # Map method names to their compile time 
     9        base.cattr_accessor :compile_time 
     10        base.compile_time = {} 
     11 
     12        # Map method names to the names passed in local assigns so far 
     13        base.cattr_accessor :template_args 
     14        base.template_args = {} 
     15 
     16        # Count the number of inline templates 
     17        base.cattr_accessor :inline_template_count 
     18        base.inline_template_count = 0 
    719      end 
    820