Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove :order option from <r:children:count />, which causes errors o…

…n postgresql. [#55 state:resolved]
  • Loading branch information...
commit 015883366ee211a17312b04a92dd3ec6bfbb2339 1 parent 815b49d
@seancribbs seancribbs authored
Showing with 5 additions and 1 deletion.
  1. +2 −0  CHANGELOG
  2. +3 −1 app/models/standard_tags.rb
View
2  CHANGELOG
@@ -2,6 +2,8 @@
=== Edge
+* Remove :order option from <r:children:count />, which causes errors on
+postgresql. [Sean Cribbs]
* Prevent recursion via the <r:content /> tag. [Sean Cribbs]
* Update Highline. [Sean Cribbs]
* Update Cucumber and RSpec, clean up some features and fix specs. [Sean Cribbs]
View
4 app/models/standard_tags.rb
@@ -49,7 +49,9 @@ class TagError < StandardError; end
Renders the total number of children.
}
tag 'children:count' do |tag|
- tag.locals.children.count(children_find_options(tag))
+ options = children_find_options(tag)
+ options.delete(:order) # Order is irrelevant
+ tag.locals.children.count(options)
end
desc %{
Please sign in to comment.
Something went wrong with that request. Please try again.