aboutsummaryrefslogblamecommitdiffstats
path: root/actionpack/lib/action_view/inline_template.rb
blob: 5e00cef13fa32808f405f4ea19072250267fe2c2 (plain) (tree)
1
2
3
4
5
6
7
8
9
                          
                               
                      
 
                                                    
 
                                      

                       
                                                    
       





                                         

     
module ActionView #:nodoc:
  class InlineTemplate #:nodoc:
    include Renderable

    attr_reader :source, :extension, :method_segment

    def initialize(source, type = nil)
      @source = source
      @extension = type
      @method_segment = "inline_#{@source.hash.abs}"
    end

    private
      # Always recompile inline templates
      def recompile?(local_assigns)
        true
      end
  end
end