redde 0.3.31 → 0.3.32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c4a508700287985787c27d14e482834468ef232
4
- data.tar.gz: cd1c4b455798fd38672e8f97323064726205a3e1
3
+ metadata.gz: 047e222b54373613e20251316ce002da9c23a064
4
+ data.tar.gz: 2ff931f7c49f7bcea51b3e2e0ecc1b0c3d02772c
5
5
  SHA512:
6
- metadata.gz: e382ff66f81abe143da979b7d0bebb60a77500e1e3f0dde2149438ead6f7b64864a424cd0b57190535a5ff4fcd138f63013d367630c29b5d81ccf88921e252b6
7
- data.tar.gz: 8abf8766f1588e85c8de3458e589d9ce5388021e84bcf866667438ed83b77b908e1b28668249c5ef3f260e80c7fd0a362adb34b89a2848661a6dae366589e35d
6
+ metadata.gz: 496cb433cac1e1e3d3b1247bdbc9d619c7cd85527ce776358ac93647ce638ea8528bbe59be18722580b2455cc04f763595c2345708bbf4fa5454f9ad4199a3d1
7
+ data.tar.gz: d9a06bc9c865f6909395af5a2d9a477bd5b17f42c8a9e747ef82683d43bcb758476e8c943bf946c22856b69fce1a6f8feedac700f0b1be328f0000b593b02d9b
@@ -12,11 +12,8 @@ module Redde::FormHelper
12
12
  options[:builder] ||= ReddeFormBuilder
13
13
  options[:html] = { 'data-redde' => { objectName: (object.kind_of?(Array) ? object.last : object).class.model_name.param_key }.to_json }
14
14
 
15
- # через blank? не заработало
16
- # options[:redde] = {} if options[:redde].blank?
17
- # options[:redde][:submits] = true if options[:redde][:submits].blank?
18
- options[:redde] = {} unless options.try(:key?, :redde)
19
- options[:redde][:submits] = true unless options[:redde].try(:key?, :submits)
15
+ options[:redde] = {} unless options.key?(:redde)
16
+ options[:redde][:submits] = true unless options[:redde].key?(:submits)
20
17
 
21
18
  with_clean_form_field_error_proc do
22
19
  form_for(object, options) do |f|
data/lib/redde/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Redde
2
- VERSION = '0.3.31'.freeze
2
+ VERSION = '0.3.32'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redde
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.31
4
+ version: 0.3.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleg Bovykin