7600aef48b
As a side benefit, fix an (non-user-visible) bug in display_s5(). Also fixed a bug where removing orphaned pages did not expire cached summary pages.
19 lines
408 B
Ruby
19 lines
408 B
Ruby
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
|