Sha256: 7aba55ed13afc9922e496b2336f5f7c0ebe312b5a70c0fc2abc09165baed90bc

Contents?: true

Size: 345 Bytes

Versions: 16

Compression:

Stored size: 345 Bytes

Contents

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
cocoon-1.1.2 lib/cocoon.rb
cocoon-1.1.1 lib/cocoon.rb
cocoon-1.1.0 lib/cocoon.rb
cocoon-1.0.22 lib/cocoon.rb
cocoon-1.0.21 lib/cocoon.rb
cocoon-1.0.20 lib/cocoon.rb
cocoon-1.0.19 lib/cocoon.rb
cocoon-1.0.18 lib/cocoon.rb
cocoon-1.0.17 lib/cocoon.rb
cocoon-1.0.16 lib/cocoon.rb
cocoon-1.0.15 lib/cocoon.rb
cocoon-1.0.14 lib/cocoon.rb
cocoon-1.0.13 lib/cocoon.rb
cocoon-1.0.12 lib/cocoon.rb
cocoon-1.0.11 lib/cocoon.rb
cocoon-1.0.10 lib/cocoon.rb