tolk 1.9.1 → 1.9.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.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/tolk/application.css +4 -2
- data/config/initializers/will_paginate.rb +18 -0
- data/lib/tolk/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fe6ea4fa1df1cdaf93396828401e34b851023cb
|
4
|
+
data.tar.gz: 974a6dd86fa4ea828da9bc866654e7481874c078
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56ca97ad53c4ef8295aabcd58f46233a147aa599f915e2f0bf255527bf7eabe68bddffebf1d5904c13c0cb57ceb16fa7129d54bf578788996fe6f13418257a7d
|
7
|
+
data.tar.gz: 4ef5e7a476c1d2652ebd206db742096189e3822e4186b6cf9e583d4ab4a6a0786ed57be8607cbd833fc63e671d7505c22e6d7a7da7e7ddba70496418137c2a8e
|
@@ -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
|
data/lib/tolk/version.rb
CHANGED
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.
|
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
|
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
|