Skip to content

Commit

Permalink
Installed and set up devise and omniauth.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Cottman-Fields committed Oct 30, 2012
1 parent ab14807 commit f255034
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .idea/.generators

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions app/models/user.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
class User < ActiveRecord::Base
# Include default devise modules. Others available are:
# :database_authenticatable, :lockable, :recoverable,
# :validatable, :timeoutable,
devise :confirmable, :omniauthable, :registerable,
:token_authenticatable, :trackable

# Setup accessible (or protected) attributes for your model
attr_accessible :email, :password, :password_confirmation, :remember_me
attr_accessible :display_name

# user stamp
model_stamper
stampable

# validation
validates_presence_of :display_name
validates_uniqueness_of :display_name, :email, :case_sensitive => false
end

0 comments on commit f255034

Please sign in to comment.