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: 0b468c1906d24dab6a7e224931928df34748a411
4
- data.tar.gz: 2ab97a571071cf4363254854c4639c5ec9330190
3
+ metadata.gz: a81746bc9395965c6fd68a747c41eed035cf7ee2
4
+ data.tar.gz: af630121102f257527f6ef49f4dad99ad95aa60d
5
5
  SHA512:
6
- metadata.gz: 81ff2dfa41a304ca200eb9496717bba86740127bc811d8e1aaaecf4f7a0ce6d31b2e233a72e07f2c7ea4d725a6fa52705f25289afe7a43070db676cd28a4beef
7
- data.tar.gz: 34b6b418a48f363ad4766a21bd2986d0d9521efc6d1772361405c3c130ee619417331d57d428da9a84ecadfaa415324b9d4a289e001612a5618e7b9c1f9b4390
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::EffectiveCkeditorTextarea::Input.new(object, object_name, template, attribute_name, input_options, (merge_wrapper_options(input_html_options, wrapper_options) || {})).to_html
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
@@ -1,3 +1,3 @@
1
1
  module EffectiveFormInputs
2
- VERSION = '0.8.2'.freeze
2
+ VERSION = '0.8.3'.freeze
3
3
  end
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.2
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-24 00:00:00.000000000 Z
11
+ date: 2015-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails