app/models/brightcontent/page.rb in brightcontent-pages-2.0.7 vs app/models/brightcontent/page.rb in brightcontent-pages-2.0.8
- old
+ new
@@ -7,14 +7,18 @@
validates_presence_of :name
after_save :update_slug
def self.default_scope
- order :lft
+ order(:lft)
end
def homepage?
lft == 1
+ end
+
+ def attachment_styles
+ Brightcontent.page_attachment_styles
end
private
def update_slug