Sha256: 2a553711e16f5fca9feb6ba9b7c9d758a56a0a3e240ba8b96c433d42b64c9aac

Contents?: true

Size: 505 Bytes

Versions: 7

Compression:

Stored size: 505 Bytes

Contents

# frozen_string_literal: true

require_relative "file_field/version"
require_relative "file_field/form_builder"

module Bard
  module FileField
    class Engine < ::Rails::Engine
      initializer "bard-file_field.assets" do
        if Rails.application.config.respond_to?(:assets)
          Rails.application.config.assets.precompile += ["bard-file.js"]
        end
      end

      config.after_initialize do
        ActionView::Base.default_form_builder.include FormBuilder
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bard-file_field-0.1.6 lib/bard/file_field.rb
bard-file_field-0.1.5 lib/bard/file_field.rb
bard-file_field-0.1.4 lib/bard/file_field.rb
bard-file_field-0.1.3 lib/bard/file_field.rb
bard-file_field-0.1.2 lib/bard/file_field.rb
bard-file_field-0.1.1 lib/bard/file_field.rb
bard-file_field-0.1.0 lib/bard/file_field.rb