Sha256: 7513519b8c43b5c72650b30d5fbccb01d6f3e61c61296741f983fedb8cf44cee

Contents?: true

Size: 470 Bytes

Versions: 3

Compression:

Stored size: 470 Bytes

Contents

module HumaneRails
  class Engine < ::Rails::Engine
    isolate_namespace HumaneRails

    initializer "humane-rails.action_controller" do |app|
      ActiveSupport.on_load :action_controller do
        helper HumaneRails::FlashMessagesHelper
      end
    end

    config.after_initialize do
      Rails.application.config.assets.paths << root.join("vendor", "assets", "components")
    end

    config.generators do |g|
      g.test_framework :rspec
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
humane-rails-5.0.2 lib/humane-rails/engine.rb
humane-rails-5.0.1 lib/humane-rails/engine.rb
humane-rails-5.0.0 lib/humane-rails/engine.rb