simple_record 1.3.5 → 1.3.6
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.
- data/lib/simple_record/results_array.rb +4 -4
- metadata +3 -3
@@ -86,9 +86,9 @@ module SimpleRecord
|
|
86
86
|
params_for_count = params.dup
|
87
87
|
params_for_count[0] = :count
|
88
88
|
params_for_count[1].delete(:limit)
|
89
|
-
|
89
|
+
# puts 'params_for_count=' + params_for_count.inspect
|
90
90
|
@count = clz.find(*params_for_count)
|
91
|
-
puts '@count=' + @count.to_s
|
91
|
+
# puts '@count=' + @count.to_s
|
92
92
|
@count
|
93
93
|
end
|
94
94
|
|
@@ -127,11 +127,11 @@ module SimpleRecord
|
|
127
127
|
|
128
128
|
# for will_paginate support
|
129
129
|
def total_pages
|
130
|
-
puts 'total_pages'
|
130
|
+
#puts 'total_pages'
|
131
131
|
puts @params[1][:per_page].to_s
|
132
132
|
return 1 if @params[1][:per_page].nil?
|
133
133
|
ret = (size / @params[1][:per_page].to_f).ceil
|
134
|
-
puts 'ret=' + ret.to_s
|
134
|
+
#puts 'ret=' + ret.to_s
|
135
135
|
ret
|
136
136
|
end
|
137
137
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 1.3.
|
9
|
+
- 6
|
10
|
+
version: 1.3.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Travis Reeder
|