recordselect 3.10.1 → 3.10.4
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecf26cbdaa2d60c795f70e52aacef02a47c1b2a79c354bd0c01535ea00148615
|
4
|
+
data.tar.gz: 553cdcca188b034d7821c32f7eeca222d6f55eeacb9bbaddf4b2ad473b4ffff5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44e3c065ef8a06e293d917e245384b2eb16a23f2ef51ab1cb59de03d7293323f8d57b360cbabb0de6ba2e02e7fabbaa2f78c59eb68d45a782d06ab61379f1aa2
|
7
|
+
data.tar.gz: e4ca3f2130b36660e76803bd954b9926dc1a7da0454deed4bb59fb2d3d71e627c541a2ef07d8a0b27630827d294265c144c3294a8bb89a199e1da02964a8d0c3
|
data/config/locales/en.yml
CHANGED
@@ -60,9 +60,11 @@ module RecordSelect
|
|
60
60
|
# generate conditions from the url parameters (e.g. users/browse?group_id=5)
|
61
61
|
def record_select_conditions_from_params
|
62
62
|
conditions = []
|
63
|
+
ignored_columns = %w[controller action page search update]
|
63
64
|
params.each do |field, value|
|
64
|
-
next
|
65
|
-
|
65
|
+
next if field.in? ignored_columns
|
66
|
+
column = record_select_config.model.columns_hash[field]
|
67
|
+
conditions << record_select_condition_for_column(column, value) if column
|
66
68
|
end
|
67
69
|
conditions
|
68
70
|
end
|
@@ -4,10 +4,10 @@
|
|
4
4
|
class Object
|
5
5
|
def rs_(key, options = {})
|
6
6
|
unless key.blank?
|
7
|
-
text = I18n.translate "#{key}", {:scope => [:record_select], :default => key.is_a?(String) ? key : key.to_s.titleize}.merge(options)
|
7
|
+
text = I18n.translate "#{key}", **{:scope => [:record_select], :default => key.is_a?(String) ? key : key.to_s.titleize}.merge(options)
|
8
8
|
# text = nil if text.include?('translation missing:')
|
9
9
|
end
|
10
|
-
text ||= key
|
10
|
+
text ||= key
|
11
11
|
text
|
12
12
|
end
|
13
13
|
end
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: recordselect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.10.
|
4
|
+
version: 3.10.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergio Cambra
|
8
8
|
- Volker Hochstein
|
9
9
|
- Lance Ivy
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2022-03-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -84,7 +84,7 @@ homepage: http://github.com/scambra/recordselect
|
|
84
84
|
licenses:
|
85
85
|
- MIT
|
86
86
|
metadata: {}
|
87
|
-
post_install_message:
|
87
|
+
post_install_message:
|
88
88
|
rdoc_options: []
|
89
89
|
require_paths:
|
90
90
|
- lib
|
@@ -99,9 +99,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
99
|
- !ruby/object:Gem::Version
|
100
100
|
version: '0'
|
101
101
|
requirements: []
|
102
|
-
|
103
|
-
|
104
|
-
signing_key:
|
102
|
+
rubygems_version: 3.3.7
|
103
|
+
signing_key:
|
105
104
|
specification_version: 4
|
106
105
|
summary: RecordSelect widget as a replacement for massive drop down lists
|
107
106
|
test_files:
|