Sha256: b52977b4257516f0a6b253b2a35bf461cff801c3e4ab75224f58dac072aa0318

Contents?: true

Size: 452 Bytes

Versions: 11

Compression:

Stored size: 452 Bytes

Contents

# frozen_string_literal: true

module CSVRb
  class Railtie < Rails::Railtie
    initializer 'csv_rb.initialization' do
      ActiveSupport.on_load(:action_view) do
        require 'csv_rb/template_handler'
        ActionView::Template.register_template_handler :csvrb, ActionView::Template::Handlers::CSVRbBuilder.new
      end

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
csv_rb-6.0.3.1 lib/csv_rb/railtie.rb
csv_rb-6.0.2.4 lib/csv_rb/railtie.rb
csv_rb-6.0.2.3 lib/csv_rb/railtie.rb
csv_rb-6.0.2.2 lib/csv_rb/railtie.rb
csv_rb-6.0.2.1 lib/csv_rb/railtie.rb
csv_rb-5.2.3.2 lib/csv_rb/railtie.rb
csv_rb-5.2.3.1 lib/csv_rb/railtie.rb
csv_rb-5.2.3 lib/csv_rb/railtie.rb
csv_rb-5.2.2 lib/csv_rb/railtie.rb
csv_rb-5.2.1 lib/csv_rb/railtie.rb
csv_rb-0.5.2 lib/csv_rb/railtie.rb