jm81-paginate 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/helpers/merb.rb +1 -1
  3. metadata +1 -1
data/Rakefile CHANGED
@@ -18,7 +18,7 @@ require 'merb-core'
18
18
  require 'merb-core/tasks/merb'
19
19
 
20
20
  GEM_NAME = "paginate"
21
- GEM_VERSION = "0.1.1"
21
+ GEM_VERSION = "0.1.2"
22
22
  AUTHOR = "Jared Morgan"
23
23
  EMAIL = "jmorgan@morgancreative.net"
24
24
  HOMEPAGE = "http://github.com/jm81/paginate/"
data/lib/helpers/merb.rb CHANGED
@@ -41,7 +41,7 @@ module Paginate
41
41
  pages = collection.pages
42
42
 
43
43
  tag(:div, :class => 'pageLinks') do
44
- if current_page == 1
44
+ if current == 1
45
45
  tag(:span, '«', :class => 'pageDisabled pagePrevious')
46
46
  else
47
47
  tag(:a, '«', :href => page_url(current - 1), :class => 'pagePrevious')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jm81-paginate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jared Morgan