Skip to content

Instantly share code, notes, and snippets.

@thehashrocket
Created January 16, 2017 14:54
Show Gist options
  • Save thehashrocket/574d55ca183f19a5dbfcb7da3dc72f00 to your computer and use it in GitHub Desktop.
Save thehashrocket/574d55ca183f19a5dbfcb7da3dc72f00 to your computer and use it in GitHub Desktop.
# config/routes.rb
get '/users/sign_in', to: redirect('/')
get '/users/sign_up', to: redirect('/')
devise_for :users, :controllers => { :omniauth_callbacks => "omniauth_callbacks" }
# app/models/user.rb
class User < ActiveRecord::Base
validates :approved_user, inclusion: [true]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment