Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 345 Bytes
require 'cocoon/view_helpers'
module Cocoon
class Engine < ::Rails::Engine
config.before_initialize do
config.action_view.javascript_expansions[:cocoon] = %w(cocoon)
end
# configure our plugin on boot
initializer "cocoon.initialize" do |app|
ActionView::Base.send :include, Cocoon::ViewHelpers
end
end
end
Jump to Line
Something went wrong with that request. Please try again.