wonderful_simple_forms 0.1.6 → 0.1.7

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: 2b3dd30caa9b17eb769512ebf7c171e09629a69a
4
- data.tar.gz: 1d9666b433720f09c9c9666e14f63ba044c7ac3d
3
+ metadata.gz: e5ef4f0b4e88547ed4d3da47c698dd1c618e0941
4
+ data.tar.gz: 5562b68d2850a1ff0e691d0b98d1b655315faad2
5
5
  SHA512:
6
- metadata.gz: a802859adb10243bff6d66bc9c5a69bed9953ea044a6ce636e5910049c915d969632fdbad8753241d97ceb61defbd90fe371789fe14609d5923e56251ebf3878
7
- data.tar.gz: 6b9061446c493457dc8e6555277e1d537ced7208f2df76dc6661a852dab5aed5fc1f7cad873683fb7e722b3bce7509cbc73dc85f79ace71202085fd5774198dc
6
+ metadata.gz: b83183ef1cba13e65cf2195d843d272ab2a61a5ec99a71b2aabd85784fae853e214d14c7ff4a489cc152a3fdc0e1311b6081da0ece6f666bf74f761bf58be4d2
7
+ data.tar.gz: 1c5ae19f82f226e0f02ad6eb35154bc1bceaa5e41946edfb4bb39655b768ce26ec3b0e17d3fc5a41af7264477bb32f8aa3cd466924fec03c3040ceee3076eedd
@@ -52,7 +52,7 @@ module WonderfulSimpleForms
52
52
  end
53
53
 
54
54
  def enum_list
55
- original_attribute_name.to_s.classify.constantize.all.map{|instance|[instance.method(:name).call, instance.id]}
55
+ original_attribute_name.to_s.classify.constantize.all.map{|instance|[instance.method(:name).call, instance.method(:name).call]}
56
56
  end
57
57
  end
58
58
  end
@@ -63,6 +63,12 @@ SimpleForm::FormBuilder.class_eval do
63
63
  map_type :enum, :to => WonderfulSimpleForms::SimpleForm::EnumInput
64
64
  map_type :belongs_to, :to => WonderfulSimpleForms::SimpleForm::BelongsToInput
65
65
 
66
- alias_method_chain :default_input_type, :enum
67
- alias_method_chain :default_input_type, :belongs_to
66
+ # alias_method_chain :default_input_type, :enum
67
+ # alias_method_chain :default_input_type, :belongs_to
68
+
69
+ alias_method :default_input_type_without_enum, :default_input_type
70
+ alias_method :default_input_type, :default_input_type_with_enum
71
+
72
+ alias_method :default_input_type_without_belongs_to, :default_input_type
73
+ alias_method :default_input_type, :default_input_type_with_belongs_to
68
74
  end
@@ -1,3 +1,3 @@
1
1
  module WonderfulSimpleForms
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wonderful_simple_forms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - hdf1986
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-11 00:00:00.000000000 Z
11
+ date: 2016-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler