Skip to content

Commit

Permalink
Added == method
Browse files Browse the repository at this point in the history
  • Loading branch information
bitcababy committed Apr 8, 2012
1 parent c675492 commit 67484ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/aegis/role.rb
Expand Up @@ -17,6 +17,10 @@ def <=>(other)
name <=> other.name name <=> other.name
end end


def ==(other)
name == other.name && default_permission == other.default_permission
end

def to_s def to_s
name.to_s.humanize name.to_s.humanize
end end
Expand Down

0 comments on commit 67484ee

Please sign in to comment.