Skip to content

Instantly share code, notes, and snippets.

@keo
Created April 7, 2011 14:52
Show Gist options
  • Save keo/907915 to your computer and use it in GitHub Desktop.
Save keo/907915 to your computer and use it in GitHub Desktop.
protect_from_forgery
include Hobo::Controller::AuthenticationSupport
before_filter :except => [:login, :forgot_password, :accept_invitation, :do_accept_invitation, :reset_password] do
login_required unless User.count == 0
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment