Sha256: 95c5801a03d39314950da5b40a87cf14a7eed8044ce060b386f87bee57e8b912

Contents?: true

Size: 453 Bytes

Versions: 8

Compression:

Stored size: 453 Bytes

Contents

# frozen_string_literal: true

module RespondForHelper
  class Railtie < Rails::Railtie
    ActiveSupport.on_load :action_controller do
      ActionController::Base.send :include, RespondForHelper::Controller
    end

    ActiveSupport.on_load :action_view do
      ActionView::Base.send :include, RespondForHelper::Helper
    end

    ActiveSupport.on_load :i18n do
      I18n.load_path += Dir[File.join(__dir__, 'locales', '*.yml')]
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
respond_for_helper-1.2.0 lib/respond_for_helper/railtie.rb
respond_for_helper-1.1.3 lib/respond_for_helper/railtie.rb
respond_for_helper-1.1.2 lib/respond_for_helper/railtie.rb
respond_for_helper-1.1.1 lib/respond_for_helper/railtie.rb
respond_for_helper-1.1.0 lib/respond_for_helper/railtie.rb
respond_for_helper-1.0.2 lib/respond_for_helper/railtie.rb
respond_for_helper-1.0.1 lib/respond_for_helper/railtie.rb
respond_for_helper-1.0.0 lib/respond_for_helper/railtie.rb