Skip to content

Commit

Permalink
Fixes pagination issue + prepares release
Browse files Browse the repository at this point in the history
  • Loading branch information
jensljungblad committed Dec 10, 2014
1 parent 9f9f3e9 commit 22aa613
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### 0.9.3 - 2014-12-10
Bug fixes
- Pagination offset fix

### 0.9.2 - 2014-12-09
Features
- Replaces select2 with [selectize](http://brianreavis.github.io/selectize.js/)
Expand Down
2 changes: 1 addition & 1 deletion lib/godmin/resource/pagination.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def pagination_limit
end

def pagination_offset
(params[:page].to_i * self.class.per_page) - self.class.per_page
(current_page * self.class.per_page) - self.class.per_page
end

def pages
Expand Down
2 changes: 1 addition & 1 deletion lib/godmin/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Godmin
VERSION = "0.9.2"
VERSION = "0.9.3"
end

0 comments on commit 22aa613

Please sign in to comment.