Class: ActionController::Base
- Inherits:
-
Object
- Object
- ActionController::Base
- Defined in:
- lib/quick_serve/rails/ext/rails.rb
Instance Method Summary collapse
Instance Method Details
#store_snapshot ⇒ Object
4 5 6 7 8 |
# File 'lib/quick_serve/rails/ext/rails.rb', line 4 def store_snapshot puts "quick_serve: stored snapshot as #{request.url}" # do not store redirects or pages with flash QuickServe::Rails::Snapshot.store(request.url, response.body) if !response.redirected_to and flash == {} end |