comprobar que se hayan ordenado
This commit is contained in:
parent
a09f049c20
commit
442a75da5d
2 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ class Post
|
|||
get_front_matter 'order'
|
||||
end
|
||||
|
||||
def is_ordered?
|
||||
def ordered?
|
||||
!order.nil?
|
||||
end
|
||||
|
||||
|
|
|
@ -204,7 +204,7 @@ class Site
|
|||
p.save
|
||||
end
|
||||
|
||||
true
|
||||
posts_for(collection).map(&:ordered?).all?
|
||||
end
|
||||
alias :reorder_posts! :reorder_collection!
|
||||
|
||||
|
|
Loading…
Reference in a new issue