Class: Protected::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Protected::ApplicationController
show all
- Defined in:
- app/controllers/protected/application_controller.rb
Instance Method Summary
collapse
Instance Method Details
8
9
10
|
# File 'app/controllers/protected/application_controller.rb', line 8
def (opts = {})
{ :page => params[:page].present? ? params[:page].to_i : 1, :per_page => params[:per_page].present? ? params[:per_page].to_i : 12 }.merge(opts)
end
|
#set_cache_buster ⇒ Object
12
13
14
15
16
|
# File 'app/controllers/protected/application_controller.rb', line 12
def set_cache_buster
response.["Cache-Control"] = "no-cache, no-store, max-age=0, must-revalidate"
response.["Pragma"] = "no-cache"
response.["Expires"] = "Fri, 01 Jan 1990 00:00:00 GMT"
end
|