neat-pages 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ class NeatPages::Helpers::Builder
3
3
  @pagination = pagination
4
4
  @base_url = base_url
5
5
  @params = params
6
-
6
+ @params.delete('utf8')
7
7
  reset_builder
8
8
  end
9
9
 
@@ -21,11 +21,7 @@ class NeatPages::Helpers::Builder
21
21
  end
22
22
 
23
23
  def path_to(page)
24
- qs = ["page=#{page}"]
25
-
26
- @params.each { |k,v| qs << "#{k}=#{v}" if k != 'page' }
27
-
28
- return @base_url + '?' + qs.join("&")
24
+ return @base_url + '?' + @params.map { |k,v| "#{k}=#{v}"}.join('&') + "&page=#{page}"
29
25
  end
30
26
 
31
27
  def reset_builder
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neat-pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-11 00:00:00.000000000 Z
12
+ date: 2013-09-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake