Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 04cebcf3e0
Fetching contributors…

Cannot retrieve contributors at this time

9 lines (9 sloc) 0.269 kb
class User < ActiveRecord::Base
validates_uniqueness_of :name, :email
validates_presence_of :name, :email
def to_json
#super(:except => :password)
super(:except => [:password, :created_at, :updated_at])
#super(:only => [:name, :email, :bio])
end
end
Jump to Line
Something went wrong with that request. Please try again.