Added User#admin?(a_user) for duck typing who can add repositories etc to a user
authorJohan Sørensen <johan@johansorensen.com>
Wed, 4 Feb 2009 08:44:21 +0000 (09:44 +0100)
committerJohan Sørensen <johan@johansorensen.com>
Wed, 22 Apr 2009 12:04:15 +0000 (14:04 +0200)
commitd55c0ef0fd46afa1df299b934804141c782ae89e
tree960bf9bc56f0d895b2dc3bf5ba4da17a82502c31
parentb0ce8994bfdc534d0d440b44f12ab1e8b99fb26a
Added User#admin?(a_user) for duck typing who can add repositories etc to a user

In the case of a User object it is always the user itself, but since the
repository controller gets a polymorphic owner object we'd want to implement
this method anyway
app/models/user.rb
spec/models/user_spec.rb