Changesets can be listed by changeset number.
The Git repository is here.
Changeset 449
Fix divide by zero (facepalm).
- Comitted by: rool
- Date: Tuesday September 03 03:05:44 2013 (over 11 years ago)
Affected files:
rool/rails/beast/trunk/app/models/topic.rb:
prev. | current | |
def paged?(per_page = 25) posts_count > per_page.to_i end | ||
def last_page(per_page = 25) | ||
38 | | |
38 | per_page = per_page.to_f | |
39 | per_page = 25.0 if (per_page < 1) | |
40 | (posts_count.to_f / per_page).ceil.to_i | |
end | ||
def editable_by?(user) |