Sha256: 7c007a18f49ae157ec4ec9d0ca3c33104043a90ce8eeb99434cc7c3382448851

Contents?: true

Size: 481 Bytes

Versions: 8

Compression:

Stored size: 481 Bytes

Contents

# frozen_string_literal: true

require 'rails/railtie'

module Healthicons
  module Rails
    class Railtie < ::Rails::Railtie
      # @note
      #   https://api.rubyonrails.org/classes/ActiveSupport/LazyLoadHooks.html
      #   https://simonecarletti.com/blog/2011/04/understanding-ruby-and-rails-lazy-load-hooks/
      initializer 'healthicons.view_helpers' do
        ActiveSupport.on_load(:action_view) do
          include ViewHelpers
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
healthicons-0.0.8 lib/healthicons/rails/railtie.rb
healthicons-0.0.7 lib/healthicons/rails/railtie.rb
healthicons-0.0.6 lib/healthicons/rails/railtie.rb
healthicons-0.0.5 lib/healthicons/rails/railtie.rb
healthicons-0.0.4 lib/healthicons/rails/railtie.rb
healthicons-0.0.3 lib/healthicons/rails/railtie.rb
healthicons-0.0.2 lib/healthicons/rails/railtie.rb
healthicons-0.0.1 lib/healthicons/rails/railtie.rb