Upgrade to Rails 2.2.0
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.
This commit is contained in:
parent
39348c65c2
commit
7600aef48b
827 changed files with 123652 additions and 11027 deletions
|
@ -1,34 +1,14 @@
|
|||
# Legacy TemplateHandler stub
|
||||
|
||||
module ActionView
|
||||
module TemplateHandlers
|
||||
module Compilable
|
||||
end
|
||||
end
|
||||
|
||||
class TemplateHandler
|
||||
|
||||
def self.line_offset
|
||||
0
|
||||
end
|
||||
|
||||
def self.compilable?
|
||||
false
|
||||
end
|
||||
|
||||
def initialize(view)
|
||||
@view = view
|
||||
end
|
||||
|
||||
def render(template)
|
||||
end
|
||||
|
||||
def compile(template)
|
||||
end
|
||||
|
||||
def compilable?
|
||||
self.class.compilable?
|
||||
end
|
||||
|
||||
def line_offset
|
||||
self.class.line_offset
|
||||
end
|
||||
|
||||
# Called by CacheHelper#cache
|
||||
def cache_fragment(block, name = {}, options = nil)
|
||||
def self.call(template)
|
||||
new.compile(template)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue