Commit ebad2ff1cd610b62206dd4c820271f4281c3d75f

overwrite to_xml to hide some attributes (crypted password, salt...)

Commit diff

app/models/user.rb

 
9999 def to_param
100100 login
101101 end
102
103 def to_xml(opts = {})
104 super({:except => [:activation_code, :crypted_password, :remember_token, :remember_token_expires_at, :salt, :ssh_key_id]}.merge(opts))
105 end
102106
103107 protected
104108 # before filter
toggle raw diff