Sha256: dd0d2aedce0cb6f31ae7a51968e91630850af1ad83b2893fac15a4a01458457f

Contents?: true

Size: 472 Bytes

Versions: 8

Compression:

Stored size: 472 Bytes

Contents

# frozen_string_literal: true

module AxlsxRails
  class Railtie < Rails::Railtie
    initializer 'axlsx_rails.initialization' do
      ActiveSupport.on_load(:action_view) do
        require 'axlsx_rails/template_handler'
        ActionView::Template.register_template_handler :axlsx, ActionView::Template::Handlers::AxlsxBuilder.new
      end

      ActiveSupport.on_load(:action_controller) do
        require 'axlsx_rails/action_controller'
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/caxlsx_rails-0.6.3/lib/axlsx_rails/railtie.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/caxlsx_rails-0.6.3/lib/axlsx_rails/railtie.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/caxlsx_rails-0.6.3/lib/axlsx_rails/railtie.rb
caxlsx_rails-0.6.3 lib/axlsx_rails/railtie.rb
caxlsx_rails-0.6.2 lib/axlsx_rails/railtie.rb
axlsx_rails-0.6.1 lib/axlsx_rails/railtie.rb
axlsx_rails-0.6.0 lib/axlsx_rails/railtie.rb
axlsx_rails-0.5.2 lib/axlsx_rails/railtie.rb