Sha256: ffdb25c68351c5e90437051d927a4f39c1c3247c1376d8709f7d1c7ee3dd5416

Contents?: true

Size: 438 Bytes

Versions: 4

Compression:

Stored size: 438 Bytes

Contents

# frozen_string_literal: true
require 'arbre/rails/template_handler'
require 'arbre/rails/forms'
require 'arbre/rails/rendering'
require 'rails'

Arbre::Element.include(Arbre::Rails::Rendering)

module Arbre
  class Railtie < ::Rails::Railtie
    initializer "arbre" do
      ActiveSupport.on_load(:action_view) do
        ActionView::Template.register_template_handler :arb, Arbre::Rails::TemplateHandler.new
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
arbre-2.0.1 lib/arbre/railtie.rb
arbre-2.0.0 lib/arbre/railtie.rb
arbre-1.7.0 lib/arbre/railtie.rb
arbre-1.6.0 lib/arbre/railtie.rb