Sha256: d19f4d8e861da6eaecb530e81f7fb285de37a999d752c37a9ab6f052c9123da4
Contents?: true
Size: 347 Bytes
Versions: 8
Compression:
Stored size: 347 Bytes
Contents
require 'cocoon/view_helpers' module Cocoon class Railtie < ::Rails::Railtie 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
Version data entries
8 entries across 8 versions & 1 rubygems