egov_utils 0.4.7 → 0.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/egov_utils/grid_helper.rb +6 -0
- data/app/views/common/_grid.html.coffee +1 -1
- data/lib/egov_utils.rb +2 -0
- data/lib/egov_utils/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36e83b4cc0d2d3c4cca271573fe52c05be094841c2752355fd419d3ad5ede82c
|
4
|
+
data.tar.gz: 13ec9e2830a06f4863bfd58890258ebccf7266e37783af5e094de4089a4e7806
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcd3259094c96b7dbfea0cda362bbaf570a96ca8315c4f7c92e0f376018435f4b5193b23348f30805acf48f808291b008de11cd78105e9db1903e48397d4f824
|
7
|
+
data.tar.gz: 437c12e05d1839a2e6e980b5ef062c7e753620fff6f11807d7d4bb75c6e0aaf898424c491739a8ac7fb3ad1e5dacffdeb64ec51a6759c165caeaae619edcc502
|
@@ -65,6 +65,12 @@ module EgovUtils
|
|
65
65
|
s << "}"
|
66
66
|
end
|
67
67
|
|
68
|
+
def grid_necessary_fields(schema)
|
69
|
+
fields = schema.columns.dup
|
70
|
+
pks = [schema.model.primary_key].concat(fields.collect{|col| col.primary_key_name }).uniq
|
71
|
+
fields.concat(pks.map{|pk_name| schema.attribute(pk_name) })
|
72
|
+
end
|
73
|
+
|
68
74
|
def additional_grid_edit_buttons(schema)
|
69
75
|
end
|
70
76
|
end
|
data/lib/egov_utils.rb
CHANGED
data/lib/egov_utils/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: egov_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ondřej Ezr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -254,14 +254,14 @@ dependencies:
|
|
254
254
|
requirements:
|
255
255
|
- - "~>"
|
256
256
|
- !ruby/object:Gem::Version
|
257
|
-
version: '5.
|
257
|
+
version: '5.2'
|
258
258
|
type: :runtime
|
259
259
|
prerelease: false
|
260
260
|
version_requirements: !ruby/object:Gem::Requirement
|
261
261
|
requirements:
|
262
262
|
- - "~>"
|
263
263
|
- !ruby/object:Gem::Version
|
264
|
-
version: '5.
|
264
|
+
version: '5.2'
|
265
265
|
- !ruby/object:Gem::Dependency
|
266
266
|
name: bootstrap_form
|
267
267
|
requirement: !ruby/object:Gem::Requirement
|