aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/template/inline.rb
blob: 54efa543c80843da2a54c26677dc8769c4eb6aa4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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?
        true
      end
  end
end