Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #10 from jpmckinney/remove_form_builder_monkeypatch

ActiveAdmin::FormBuilder monkey patch is identical to ActiveAdmin code
  • Loading branch information...
commit 9c877bb539fb1f141032b49055064ff6b7694dd3 2 parents 9494924 + 2d573f8
@elia elia authored
View
1  lib/active_admin/mongoid.rb
@@ -12,7 +12,6 @@ def setup *args, &block
setup_without_mongoid *args, &block
require 'active_admin/mongoid/comments'
- require 'active_admin/mongoid/form_builder'
require 'active_admin/mongoid/resource'
require 'active_admin/mongoid/document'
end
View
13 lib/active_admin/mongoid/form_builder.rb
@@ -1,13 +0,0 @@
-require 'active_admin/form_builder'
-
-class ActiveAdmin::FormBuilder
- def inputs(*args, &block)
- # Store that we are creating inputs without a block
- @inputs_with_block = block_given? ? true : false
- content = with_new_form_buffer do
- super
- # form_buffers.last
- end
- form_buffers.last << content.html_safe
- end
-end
Please sign in to comment.
Something went wrong with that request. Please try again.