lib/trestle/navigation/group.rb in trestle-0.8.4 vs lib/trestle/navigation/group.rb in trestle-0.8.5
- old
+ new
@@ -38,10 +38,14 @@
end
def label
I18n.t("admin.navigation.groups.#{name}", default: name.to_s.titlecase)
end
+
+ def id
+ name.to_s.parameterize
+ end
end
class NullGroup
def present?
false
@@ -55,9 +59,13 @@
other.is_a?(NullGroup)
end
def hash
NullGroup.hash
+ end
+
+ def id
+ nil
end
def <=>(other)
-1
end