Merge branch 'master' of github.com:OWASP/railsgoat into pr-96

This commit is contained in:
cktricky
2014-03-14 14:00:56 -04:00
13 changed files with 488 additions and 2 deletions
+7
View File
@@ -37,6 +37,13 @@ class User < ActiveRecord::Base
def full_name
"#{self.first_name} #{self.last_name}"
end
=begin
# Instead of the entire user object being returned, we can use this to filter.
def as_json
super(only: [:user_id, :email, :first_name, :last_name])
end
=end
private