update how session ticket is added for Rails 4