Permalink
Browse files

Added == method

  • Loading branch information...
1 parent c675492 commit 67484eea96b9a74c2f99337991336df44f0ff865 @bitcababy committed Apr 8, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/aegis/role.rb
View
@@ -17,6 +17,10 @@ def <=>(other)
name <=> other.name
end
+ def ==(other)
+ name == other.name && default_permission == other.default_permission
+ end
+
def to_s
name.to_s.humanize
end

0 comments on commit 67484ee

Please sign in to comment.