godmin 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 62c5f761bf1def69547eca0aea4158bc21ced800
4
- data.tar.gz: 1027b1f89f1daafc1a7a5ce448688bffbb85e08a
3
+ metadata.gz: 7651d3e37543f3c1191f969075917796dd3a7fd1
4
+ data.tar.gz: fae4e6570feaa75d32bc26862b2df6f2e0da657c
5
5
  SHA512:
6
- metadata.gz: 196f2f7e4b36f756781d6607435488340754335108adb37cf060307b4ad7829cc6cd9ae53555e9d84bcd907486693ed3f41457b5b8115d048464d606487da8a2
7
- data.tar.gz: 0341ae1349120f246ec2f12e6b9986b9c88fb272b0ce0ffaaf23fff58ac935126724c0af4e4a1e4379c9b36f10030052210f9f0091bc61f816a0e582c82a6f8e
6
+ metadata.gz: 57d38de96f1be3c647afdb7f45bba6730907bce428106bf5ea41912061519e4fcaf7daa51d673379eec07f60b2597fa47ab57109c9d586197b5037fa28a9ce79
7
+ data.tar.gz: 3cbc018639fb754864aa67e51cb5054cabfbe9327581e91b9e9f32d0b9821770dc05df6be424232eb43f22cb4cfc3c29f0f7176f52b619982aaadbc16fb321e2
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ### 0.9.3 - 2014-12-10
4
+ Bug fixes
5
+ - Pagination offset fix
6
+
3
7
  ### 0.9.2 - 2014-12-09
4
8
  Features
5
9
  - Replaces select2 with [selectize](http://brianreavis.github.io/selectize.js/)
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Godmin
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/godmin.svg)](http://badge.fury.io/rb/godmin)
3
+ [![Gem Version](http://img.shields.io/gem/v/godmin.svg)](https://rubygems.org/gems/godmin)
4
4
  [![Build Status](https://travis-ci.org/varvet/godmin.svg?branch=master)](https://travis-ci.org/varvet/godmin)
5
5
  [![Code Climate](https://codeclimate.com/github/varvet/godmin/badges/gpa.svg)](https://codeclimate.com/github/varvet/godmin)
6
6
 
@@ -27,7 +27,7 @@ module Godmin
27
27
  end
28
28
 
29
29
  def pagination_offset
30
- (params[:page].to_i * self.class.per_page) - self.class.per_page
30
+ (current_page * self.class.per_page) - self.class.per_page
31
31
  end
32
32
 
33
33
  def pages
@@ -1,3 +1,3 @@
1
1
  module Godmin
2
- VERSION = "0.9.2"
2
+ VERSION = "0.9.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: godmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Ljungblad
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-12-09 00:00:00.000000000 Z
13
+ date: 2014-12-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bcrypt