ransack_ui 1.2.0 → 1.2.1
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,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
YzkyMjgzMzEwNDYwNDI1ODc4ODA2OTYxNWRkMjJjYjhjMTNlOGE4YQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
M2MxNjg0OWI3NTZlNGU5MGYyOGIxOGI4NGJjYmU2YTBkMTJmMjk1Zg==
|
|
7
|
+
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ZDFjYjdlMzZjODYwNDZiNTQ2ZmU0OTk2NjMxYTMzMjY1NTc1M2EyNTgzM2I5
|
|
10
|
+
Y2VhMDBkOTcwNDgzYTE2OTVmYTQ2NWI1ZWVhZmIyZWJmMTQxM2U1ODkyYTUx
|
|
11
|
+
ZWYzOGRlZjdhYmRmZmZiMjFiNDNjNWQyODQ5MGFjOWJiMTE5ZTU=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
ZDJlOGRmMmZkZGFiZWQ0MjUxYTkwOTY5MDQ5NzExOTdiNzgzZGY2YWQyODM5
|
|
14
|
+
ZmE3NDJlMTczMGU5Y2IzZTU3MTczZTk1NTAyZmNiOWJiZWFhMDI3YTM3MTlj
|
|
15
|
+
NTA1NzQ5YjE1ZmY1NTZmNmM4M2UzMDlhMjA5NDNmMmZjNTIyNzg=
|
|
@@ -149,7 +149,9 @@ module Ransack
|
|
|
149
149
|
if v.is_a? ActiveModel::Validations::InclusionValidator
|
|
150
150
|
v.attributes.each do |a|
|
|
151
151
|
# Try to translate options from activerecord.attribute_options.<model>.<attribute>
|
|
152
|
-
|
|
152
|
+
inclusions = v.send(:delimiter)
|
|
153
|
+
inclusions = inclusions.call if inclusions.respond_to?(:call) # handle lambda
|
|
154
|
+
hash[a.to_s] = inclusions.each_with_object({}) do |o, options|
|
|
153
155
|
options[o.to_s] = I18n.translate("activerecord.attribute_options.#{klass.to_s.downcase}.#{a}.#{o}", :default => o.to_s.titleize)
|
|
154
156
|
end
|
|
155
157
|
end
|
data/lib/ransack_ui/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ransack_ui
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nathan Broadbent
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-12-
|
|
11
|
+
date: 2013-12-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ransack_chronic
|
|
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
98
98
|
version: '0'
|
|
99
99
|
requirements: []
|
|
100
100
|
rubyforge_project:
|
|
101
|
-
rubygems_version: 2.
|
|
101
|
+
rubygems_version: 2.0.3
|
|
102
102
|
signing_key:
|
|
103
103
|
specification_version: 4
|
|
104
104
|
summary: UI Builder for Ransack
|