app/models/landable/category.rb in landable-1.13.1 vs app/models/landable/category.rb in landable-1.13.2
- old
+ new
@@ -10,18 +10,16 @@
before_validation :set_slug
def to_liquid
{
'name' => name,
- 'pages' => pages.published,
+ 'pages' => pages.published
}
end
-
protected
def set_slug
self.slug = name.downcase.gsub(/[^\w]/, '_').gsub(/_{2,}/, '_')
end
-
end
end