app/models/page.rb in tkh_content-0.1.9.2 vs app/models/page.rb in tkh_content-0.1.9.3
- old
+ new
@@ -30,9 +30,10 @@
scope :by_recently_published, order('published_at desc')
# tree scopes
scope :orphans, where('parent_id IS ?', nil)
scope :with_parent_id, lambda { |id| where('parent_id = ?', id) }
scope :by_title, order('title')
+ scope :by_menu_position, order('menu_position')
def nickname
short_title || title
end