Sha256: dd1d5185d330186dde6e7512e1767d64a4af5808b9053de00312c96b9837e60a

Contents?: true

Size: 655 Bytes

Versions: 1

Compression:

Stored size: 655 Bytes

Contents

module WithPopup
  class Engine < ::Rails::Engine
    require 'jquery-rails'
    config.app_middleware.use 'WithPopup::Rack'

    initializer 'with_popup.include_modules' do
      ActiveSupport.on_load :action_controller do
        include WithPopup::Controllers::ActionController
      end
      ActiveSupport.on_load :action_view do
        include WithPopup::Helpers::FormTagHelper
        ActionView::Helpers::FormBuilder.class_eval do
          include WithPopup::Helpers::FormHelper
        end
      end
    end

    config.generators do |g|
      g.test_framework :rspec, fixture: false
      g.assets false
      g.helper false
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
with_popup-0.1.0 lib/with_popup/engine.rb