lib/ddr/auth/roles/role_set.rb in ddr-models-2.0.0.pre.1 vs lib/ddr/auth/roles/role_set.rb in ddr-models-2.0.0.pre.2
- old
+ new
@@ -75,10 +75,10 @@
def serialize
to_a.map(&:serialize)
end
def ==(other)
- if self.class == other.class
+ if other.is_a? RoleSet
self.to_set == other.to_set
else
super
end
end