Sha256: c8a3f7ac115231835e5de6a12dc7960ef4243ec464e0152813b2cb911749a340

Contents?: true

Size: 428 Bytes

Versions: 4

Compression:

Stored size: 428 Bytes

Contents

# frozen_string_literal: true

require 'attachy/builders/attachy/form_builder'
require 'attachy/helpers/attachy/view_helper'

module Attachy
  module Rails
    class Engine < ::Rails::Engine
      initializer 'attachy.include_view_helper' do |_app|
        ActiveSupport.on_load :action_view do
          include ViewHelper

          ActionView::Helpers::FormBuilder.include FormBuilder
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
attachy-0.4.1 lib/attachy/engine.rb
attachy-0.4.0 lib/attachy/engine.rb
attachy-0.3.0 lib/attachy/engine.rb
attachy-0.2.0 lib/attachy/engine.rb