Allow comparisons between roles #8

Open
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+4 −0
Split
View
@@ -16,6 +16,10 @@ def may_by_default?
def <=>(other)
name <=> other.name
end
+
+ def ==(other)
+ name == other.name && default_permission == other.default_permission
+ end
def to_s
name.to_s.humanize