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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf754a62e429cbf72f011792ddbd02b7c4d3037d
4
- data.tar.gz: 8a19bfc45fac23a39656db9134fbcccca9996195
3
+ metadata.gz: 113b40103476fc56d7a936799d5750fecd7d3697
4
+ data.tar.gz: ea1fd807681371728f6bb6e85645bb8cb3472faa
5
5
  SHA512:
6
- metadata.gz: 1564e32053544f65e81a89ecf4738d319649e6cadc8782be6bf03d1a69b20ee5d46cb4cddc628ea65dc62045de0cdd852cc5bb57991f1c85947f532f84b0252c
7
- data.tar.gz: 0e65e90a7a924e2e399d07324857a9f080b9abe347bcf0a1ad60e2ff31c0e1079f771e57fc903734400d25c38b246dc5b4f49d883b51e8e60da6f3efc8452796
6
+ metadata.gz: 6e636dd69f663e11110d39a5583def41339daff335ca41b670bbcdbfb5871fc486ba231349327205ffafa7d3bd2d9e766ed8c3794c71d79c375e7fa29989b677
7
+ data.tar.gz: c0e210a5a0ce0ad9d8a9338fe494fc8d9c0d056ba1ca499d4f2f29fad07579bd90caf1b20eabf452ada1ed6f9a3905fb11cb3ad8a3f26bec101b2f02c370ba8a
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ### 0.9.5 - 2014-12-15
4
+ Bug fixes
5
+ - Fixes Godmin::FormBuilder issue
6
+
3
7
  ### 0.9.4 - 2014-12-15
4
8
  Features
5
9
  - Added Godmin::FormBuilder
@@ -2,12 +2,17 @@ module Godmin
2
2
  module Helpers
3
3
  module Forms
4
4
  def form_for(record, options = {}, &block)
5
- super do |form_builder|
6
- yield Godmin::FormBuilder.new(form_builder)
7
- end
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
- class FormBuilder < SimpleDelegator; end
14
+ module FormBuilders
15
+ class FormBuilder < ActionView::Helpers::FormBuilder; end
16
+ class SimpleFormBuilder < SimpleForm::FormBuilder; end
17
+ end
13
18
  end
@@ -1,3 +1,3 @@
1
1
  module Godmin
2
- VERSION = "0.9.4"
2
+ VERSION = "0.9.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: godmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Ljungblad