effective_form_inputs 0.8.2 → 0.8.3
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a81746bc9395965c6fd68a747c41eed035cf7ee2
|
|
4
|
+
data.tar.gz: af630121102f257527f6ef49f4dad99ad95aa60d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e673872c76cac66b486da99f9779848e7642489499abdc85dd6104e03899cf5e0794de881ccab0c14399ef93287800161105b92abf351f54b33239dd4a37f0f2
|
|
7
|
+
data.tar.gz: e7d4feefa48756d8dc40399f9ca3793b4f4522f995953a32f65524b7949bd953bcc9fa066cdfcfee902bd030b7cfb17186ec41ac66b166835fba75f56f223f77
|
|
@@ -5,7 +5,7 @@ if defined?(SimpleForm)
|
|
|
5
5
|
|
|
6
6
|
class EffectiveCkeditorTextAreaInput < SimpleForm::Inputs::StringInput
|
|
7
7
|
def input(wrapper_options = nil)
|
|
8
|
-
Inputs::
|
|
8
|
+
Inputs::EffectiveCkeditorTextArea::Input.new(object, object_name, template, attribute_name, input_options, (merge_wrapper_options(input_html_options, wrapper_options) || {})).to_html
|
|
9
9
|
end
|
|
10
10
|
end
|
|
11
11
|
|
|
@@ -87,11 +87,11 @@ module Inputs
|
|
|
87
87
|
end
|
|
88
88
|
|
|
89
89
|
def polymorphic_value(obj)
|
|
90
|
-
"#{obj.model_name}_#{obj.to_param}" if obj.present?
|
|
90
|
+
"#{obj.class.model_name}_#{obj.to_param}" if obj.present?
|
|
91
91
|
end
|
|
92
92
|
|
|
93
93
|
def polymorphic_type_value
|
|
94
|
-
value.try(:model_name)
|
|
94
|
+
value.try(:class).try(:model_name)
|
|
95
95
|
end
|
|
96
96
|
|
|
97
97
|
def polymorphic_id_value
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: effective_form_inputs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Code and Effect
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-11-
|
|
11
|
+
date: 2015-11-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|