compony 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/compony.gemspec +2 -2
- data/lib/compony/model_fields/anchormodel.rb +1 -1
- data/lib/compony/version.rb +1 -1
- data/lib/compony.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0925cbc177ea6e36fd56db15cb41227efcb66b7ea5896a2dd76cc13fc7974a5
|
4
|
+
data.tar.gz: 517baac0f2d25bb94857c5796d6ae41a94c291628edda7e453736488c2616036
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a6ef1cb3327c852d2f544c376f22f34d8bac2eb56ff7c29e13fb887d0b4fcd91aa3de4dcfa3f16393ec386abbbefae593379c87e848518f00978d566250064a
|
7
|
+
data.tar.gz: d3a985885dc53f7a4556c338038342f17b65991cea8ac0f993ff2ab0b638984d59b9a09b78ec7e9bec08eea4795debe1892a212875262629ff371295d771021c
|
data/CHANGELOG.md
CHANGED
data/compony.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# This file is auto-generated via: 'rake gemspec'.
|
3
3
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: compony 0.0.
|
5
|
+
# stub: compony 0.0.3 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "compony".freeze
|
9
|
-
s.version = "0.0.
|
9
|
+
s.version = "0.0.3".freeze
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
@@ -7,7 +7,7 @@ module Compony
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def value_for(data, controller: nil, **_)
|
10
|
-
return transform_and_join(data.send(@name), controller
|
10
|
+
return transform_and_join(data.send(@name), controller:) { |el| el&.label }
|
11
11
|
end
|
12
12
|
|
13
13
|
def simpleform_input(form, _component, **input_opts)
|
data/lib/compony/version.rb
CHANGED
data/lib/compony.rb
CHANGED
@@ -220,7 +220,7 @@ module Compony
|
|
220
220
|
# Goes through model_field_namespaces and returns the first hit for the given constant
|
221
221
|
# @param constant [Constant] The constant that is searched, e.g. RichText -> would return e.g. Compony::ModelFields::RichText
|
222
222
|
def self.model_field_class_for(constant)
|
223
|
-
|
223
|
+
model_field_namespaces.each do |model_field_namespace|
|
224
224
|
model_field_namespace = model_field_namespace.constantize if model_field_namespace.is_a?(::String)
|
225
225
|
if model_field_namespace.const_defined?(constant, false)
|
226
226
|
return model_field_namespace.const_get(constant, false)
|