0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00
ghost/core
David Balderston c55140d0db Change default setting for to inside foreach helper
closes #6604

* Default for `to` was always `(from-1) + limit`. This caused a problem
where the `to` value could be higher than the length of the number of
blog posts, causing `@last` to never be called/reached
* Now sets `to` to have a default of `length` and if a limit was sent
through and not higher than `length`, to then set `to` to that value
* Added some extra tests for `@last` and `@first` use cases
* Added some inline commenting
2016-03-17 17:52:38 -07:00
..
client deps: ember-cli@2.4.2 2016-03-07 09:17:51 +00:00
server Change default setting for to inside foreach helper 2016-03-17 17:52:38 -07:00
shared ensure null query options don't break ghost-url 2016-02-29 00:25:38 -06:00
test Change default setting for to inside foreach helper 2016-03-17 17:52:38 -07:00
index.js