mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 06:31:44 +00:00
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'
|
get_front_matter 'order'
|
||||||
end
|
end
|
||||||
|
|
||||||
def is_ordered?
|
def ordered?
|
||||||
!order.nil?
|
!order.nil?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -204,7 +204,7 @@ class Site
|
||||||
p.save
|
p.save
|
||||||
end
|
end
|
||||||
|
|
||||||
true
|
posts_for(collection).map(&:ordered?).all?
|
||||||
end
|
end
|
||||||
alias :reorder_posts! :reorder_collection!
|
alias :reorder_posts! :reorder_collection!
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue