diff --git a/actionpack/lib/action_controller/session/active_record_store.rb b/actionpack/lib/action_controller/session/active_record_store.rb index 353292b87c..27ef869132 100644 --- a/actionpack/lib/action_controller/session/active_record_store.rb +++ b/actionpack/lib/action_controller/session/active_record_store.rb @@ -56,7 +56,7 @@ class CGI # Save session state in the session's ActiveRecord object. def update return unless @session - @session.update_attribute "data", @data + ActiveRecord::Base.benchmark("Saving session") { @session.update_attribute "data", @data } end end #ActiveRecordStore end #Session