Sha256: 025ea05c66c09d9c34cb2452e932a8b32ccadd0f2f8f24dc147f7734041263e4
Contents?: true
Size: 407 Bytes
Versions: 12
Compression:
Stored size: 407 Bytes
Contents
require 'cocoon/view_helpers' module Cocoon class Engine < ::Rails::Engine config.before_initialize do if config.action_view.javascript_expansions config.action_view.javascript_expansions[:cocoon] = %w(cocoon) end end # configure our plugin on boot initializer "cocoon.initialize" do |app| ActionView::Base.send :include, Cocoon::ViewHelpers end end end
Version data entries
12 entries across 12 versions & 3 rubygems