class TestControllerWithExtraEtags
Public Class Methods
controller_name()
click to toggle source
# File actionpack/test/controller/render_test.rb, line 7 def self.controller_name; "test"; end
controller_path()
click to toggle source
# File actionpack/test/controller/render_test.rb, line 8 def self.controller_path; "test"; end
Public Instance Methods
array()
click to toggle source
# File actionpack/test/controller/render_test.rb, line 20 def array render plain: "stale" if stale?(etag: %w(1 2 3), template: false) end
fresh()
click to toggle source
# File actionpack/test/controller/render_test.rb, line 16 def fresh render plain: "stale" if stale?(etag: "123", template: false) end
strong()
click to toggle source
# File actionpack/test/controller/render_test.rb, line 24 def strong render plain: "stale" if stale?(strong_etag: "strong", template: false) end
with_implicit_template()
click to toggle source
# File actionpack/test/controller/render_test.rb, line 34 def with_implicit_template fresh_when(etag: "123") end
with_template()
click to toggle source
# File actionpack/test/controller/render_test.rb, line 28 def with_template if stale? template: "test/hello_world" render plain: "stale" end end