Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ApplicationController < ActionController::Base
- protect_from_forgery
- before_filter :setup
- after_filter :teardown
- private
- def setup
- @start_datetime = Time.now
- @now_datetime = Time.now
- @render_speed = @now_datetime - @start_datetime
- end
- def teardown
- @start_datetime = Time.now
- @now_datetime = Time.now
- @render_speed = @now_datetime - @start_datetime
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement