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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5ef4f0b4e88547ed4d3da47c698dd1c618e0941
|
4
|
+
data.tar.gz: 5562b68d2850a1ff0e691d0b98d1b655315faad2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
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.
|
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
|
+
date: 2016-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|