Skip to content

Commit

Permalink
Change cookie upon sign out
Browse files Browse the repository at this point in the history
  • Loading branch information
mhartl committed Dec 20, 2013
1 parent a160ec4 commit dc93dbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/helpers/sessions_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ def signed_in_user
end

def sign_out
current_user.update_attribute(:remember_token,
User.encrypt(User.new_remember_token))
self.current_user = nil
cookies.delete(:remember_token)
end
Expand Down
1 change: 1 addition & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class Application < Rails::Application
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
# config.i18n.default_locale = :de
# I18n.enforce_available_locales = true
I18n.enforce_available_locales = true

config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif)
end
Expand Down

0 comments on commit dc93dbd

Please sign in to comment.