Skip to content

Instantly share code, notes, and snippets.

@ropiku
Created February 11, 2009 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ropiku/62361 to your computer and use it in GitHub Desktop.
Save ropiku/62361 to your computer and use it in GitHub Desktop.
class User < ActiveRecord::Base
include Clearance::App::Models::User
attr_accessible :username
validates_presence_of :username
validates_uniqueness_of :username
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment