~michaelforrest/use-case-mapper/trunk

« back to all changes in this revision

Viewing changes to vendor/rails/actionpack/lib/action_view/inline_template.rb

  • Committer: Michael Forrest
  • Date: 2010-10-15 16:28:50 UTC
  • Revision ID: michael.forrest@canonical.com-20101015162850-tj2vchanv0kr0dun
refrozeĀ gems

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
module ActionView #:nodoc:
 
2
  class InlineTemplate #:nodoc:
 
3
    include Renderable
 
4
 
 
5
    attr_reader :source, :extension, :method_segment
 
6
 
 
7
    def initialize(source, type = nil)
 
8
      @source = source
 
9
      @extension = type
 
10
      @method_segment = "inline_#{@source.hash.abs}"
 
11
    end
 
12
 
 
13
    private
 
14
      # Always recompile inline templates
 
15
      def recompile?
 
16
        true
 
17
      end
 
18
  end
 
19
end