lib/trestle/form/builder.rb in trestle-0.9.2 vs lib/trestle/form/builder.rb in trestle-0.9.3
- old
+ new
@@ -1,5 +1,7 @@
+require "action_view/helpers"
+
module Trestle
class Form
class Builder < ActionView::Helpers::FormBuilder
# The #display method is defined on Kernel. Undefine it so that the
# Builder instance will not respond_to?(:display) allowing the method to
@@ -46,8 +48,5 @@
undef_method name
end
end
end
end
-
-# Load all form fields
-Trestle::Form::Fields.eager_load!