tolk 1.8.0 → 1.8.1

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: 9abfb538fd5b1496c475291c76eb390219c6e9a1
4
- data.tar.gz: 94333e34720a9a3120c9fa366b8f2d17147cfc91
3
+ metadata.gz: 3a621000f302fd01a07574c3110c028601132dbd
4
+ data.tar.gz: 8fed6ed61584487c090385083fa38f804876fa8a
5
5
  SHA512:
6
- metadata.gz: 8334be8d312ce698cadaad7e4c184a51a88648eb3b08a29e530de859620ca45a9baeb0735943d1e32fe570401a0eb9f75726f0901ec6a9954cf4523bf4d42402
7
- data.tar.gz: 021100519c121daee3f8f852d7529442e94ed03c3c4ceb1dfbf9613f348658df4b9b2dd433e70ac41deeddd537b100e36833ff60f85e6a1ed2b66c66297a3b74
6
+ metadata.gz: fc1db991d2afc7b6cc64d5fcfbfb61032b9d9d1cf4e3179fc9f2ea1c71ec72a65f28b4438716ae5bd330688f062040c332feb04b802fdd136f78cfde18637444
7
+ data.tar.gz: 0440b91e0dd044fd119d2608c0a8a10d3a5bbb375fbd1e4641b3a48f0ed4bd924c4df381fa8c41300750a1427e5f1ec0f1f74d8a98e401cc4ae32f4f4c6f9676
@@ -0,0 +1,18 @@
1
+ if defined?(WillPaginate)
2
+ ActiveSupport.on_load :active_record do
3
+ module WillPaginate
4
+ module ActiveRecord
5
+ module RelationMethods
6
+ def per(value = nil) per_page(value) end
7
+ def total_count() count end
8
+ end
9
+ end
10
+ module CollectionMethods
11
+ alias_method :num_pages, :total_pages
12
+ end
13
+ module PerPage
14
+ def paginates_per(value) self.per_page=(value) end
15
+ end
16
+ end
17
+ end
18
+ end
@@ -1,3 +1,3 @@
1
1
  module Tolk
2
- VERSION = "1.8.0"
2
+ VERSION = "1.8.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tolk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-03-28 00:00:00.000000000 Z
15
+ date: 2015-05-04 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rails
@@ -149,6 +149,7 @@ files:
149
149
  - app/views/tolk/locales/show.html.erb
150
150
  - app/views/tolk/searches/_form.html.erb
151
151
  - app/views/tolk/searches/show.html.erb
152
+ - config/initializers/will_paginate.rb
152
153
  - config/routes.rb
153
154
  - lib/generators/tolk/install_generator.rb
154
155
  - lib/generators/tolk/templates/initializer.erb