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

Version Path
cocoon-1.0.8 lib/cocoon.rb
cocoon-1.0.7 lib/cocoon.rb
cocoon-1.0.5 lib/cocoon.rb
cocoon-1.0.4 lib/cocoon.rb
cocoon-1.0.3 lib/cocoon.rb
cocoon-1.0.2 lib/cocoon.rb
cocoon-1.0.1 lib/cocoon.rb
cocoon-1.0.0 lib/cocoon.rb