ns_service_pack 0.0.8 → 0.0.9
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/History
CHANGED
@@ -10,7 +10,6 @@ module ApplicationControllerModule
|
|
10
10
|
#return [total_count, page_data]
|
11
11
|
#可在子类中覆盖定制
|
12
12
|
def get_page_data(start = 0, size = 10, params = {})
|
13
|
-
logger.debug "===================in module..."
|
14
13
|
where_conds = if @conds.present?
|
15
14
|
@conds
|
16
15
|
else
|
@@ -19,7 +18,7 @@ module ApplicationControllerModule
|
|
19
18
|
logger.debug "====>conds: #{where_conds.inspect}"
|
20
19
|
conds = {:conditions=>where_conds}
|
21
20
|
total_count = model_class.count(conds)
|
22
|
-
page_params = conds.merge!(:offset=>start, :limit=>
|
21
|
+
page_params = conds.merge!(:offset=>start, :limit=>size, :order=>params[:order])
|
23
22
|
model_class.all(page_params)
|
24
23
|
[total_count, page_data]
|
25
24
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ns_service_pack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -15,7 +15,7 @@ date: 2011-11-17 00:00:00.000000000Z
|
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|
18
|
-
requirement: &
|
18
|
+
requirement: &83558910 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ! '>='
|
@@ -23,7 +23,7 @@ dependencies:
|
|
23
23
|
version: 3.1.0
|
24
24
|
type: :development
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *83558910
|
27
27
|
description: Service package for our service lier
|
28
28
|
email: cao7113@gmail.com
|
29
29
|
executables: []
|