lib/nested_fields.rb in nested_fields-0.2.1 vs lib/nested_fields.rb in nested_fields-0.2.2

- old
+ new

@@ -1,10 +1,20 @@ -require 'engine' +module NestedFields + class Engine < Rails::Engine + initializer 'nested_fields.add_middleware' do |app| + app.middleware.use ActionDispatch::Static, "#{root}/public" + end + + config.to_prepare do + ApplicationController.helper(NestedFieldsHelper) + end + end +end