godmin 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/godmin/helpers/forms.rb +9 -4
- data/lib/godmin/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 113b40103476fc56d7a936799d5750fecd7d3697
|
4
|
+
data.tar.gz: ea1fd807681371728f6bb6e85645bb8cb3472faa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e636dd69f663e11110d39a5583def41339daff335ca41b670bbcdbfb5871fc486ba231349327205ffafa7d3bd2d9e766ed8c3794c71d79c375e7fa29989b677
|
7
|
+
data.tar.gz: c0e210a5a0ce0ad9d8a9338fe494fc8d9c0d056ba1ca499d4f2f29fad07579bd90caf1b20eabf452ada1ed6f9a3905fb11cb3ad8a3f26bec101b2f02c370ba8a
|
data/CHANGELOG.md
CHANGED
data/lib/godmin/helpers/forms.rb
CHANGED
@@ -2,12 +2,17 @@ module Godmin
|
|
2
2
|
module Helpers
|
3
3
|
module Forms
|
4
4
|
def form_for(record, options = {}, &block)
|
5
|
-
super
|
6
|
-
|
7
|
-
|
5
|
+
super(record, { builder: FormBuilders::FormBuilder }.merge(options), &block)
|
6
|
+
end
|
7
|
+
|
8
|
+
def simple_form_for(record, options = {}, &block)
|
9
|
+
super(record, { builder: FormBuilders::SimpleFormBuilder }.merge(options), &block)
|
8
10
|
end
|
9
11
|
end
|
10
12
|
end
|
11
13
|
|
12
|
-
|
14
|
+
module FormBuilders
|
15
|
+
class FormBuilder < ActionView::Helpers::FormBuilder; end
|
16
|
+
class SimpleFormBuilder < SimpleForm::FormBuilder; end
|
17
|
+
end
|
13
18
|
end
|
data/lib/godmin/version.rb
CHANGED