tolk 1.9.1 → 1.9.2

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: e150f5f50f399c3a3175bdb1fadfe29810ee3325
4
- data.tar.gz: ef55c5aed8955cf849271e066cef57be28c75c8e
3
+ metadata.gz: 2fe6ea4fa1df1cdaf93396828401e34b851023cb
4
+ data.tar.gz: 974a6dd86fa4ea828da9bc866654e7481874c078
5
5
  SHA512:
6
- metadata.gz: b190ca7e0ce4637a171d9db8a1df5f7c6f288606fa6b97ee32a2601b1c9036545bfbff50cd11361e6f65c84bb6eabc0da6dab2b3a89bbd18003953947db12810
7
- data.tar.gz: ece455e78fb594dab92ed2920b15b04ca968933841aeac09b13024d82ff829eb68f9d2035ce8cd2ef3c50f7a4ad389f059443eca279e1c7008ebad17e1bd0df3
6
+ metadata.gz: 56ca97ad53c4ef8295aabcd58f46233a147aa599f915e2f0bf255527bf7eabe68bddffebf1d5904c13c0cb57ceb16fa7129d54bf578788996fe6f13418257a7d
7
+ data.tar.gz: 4ef5e7a476c1d2652ebd206db742096189e3822e4186b6cf9e583d4ab4a6a0786ed57be8607cbd833fc63e671d7505c22e6d7a7da7e7ddba70496418137c2a8e
@@ -1,2 +1,4 @@
1
- # =require 'tolk/reset.css'
2
- # =require 'tolk/screen.css'
1
+ /*
2
+ * =require 'tolk/reset.css'
3
+ * =require 'tolk/screen.css'
4
+ */
@@ -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.9.1"
2
+ VERSION = "1.9.2"
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.9.1
4
+ version: 1.9.2
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-04-01 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