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

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/cocoon-1.2.9/lib/cocoon.rb
cocoon-1.2.9 lib/cocoon.rb
cocoon-1.2.8 lib/cocoon.rb
cocoon-1.2.7 lib/cocoon.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/cocoon-1.2.6/lib/cocoon.rb
cocoon-1.2.6 lib/cocoon.rb
cocoon-1.2.5 lib/cocoon.rb
cocoon-1.2.4 lib/cocoon.rb
cocoon-1.2.3 lib/cocoon.rb
cocoon-1.2.2 lib/cocoon.rb
cocoon-1.2.1 lib/cocoon.rb
cocoon-1.2.0 lib/cocoon.rb