Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
refactoring user model
Browse files Browse the repository at this point in the history
  • Loading branch information
PanfilovDenis committed Feb 26, 2013
1 parent b207bab commit ba15661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class User < ActiveRecord::Base

audit :email, :first_name, :last_name, :city, :company, :photo, :state, :about

validates :email, presence: true, uniqueness: true, uniqueness: {case_sensitive: false}, email: true
validates :email, presence: true, uniqueness: {case_sensitive: false}, email: true
validates :first_name, length: { maximum: 255 }, russian: true
validates :last_name, length: { maximum: 255 }, russian: true
validates :city, length: { maximum: 255 }, russian: true
Expand Down

0 comments on commit ba15661

Please sign in to comment.