Sha256: 343a0e84f3d065674445489fcabd58f28a064ca33ee59d8cf1755847af9ba1fc
Contents?: true
Size: 494 Bytes
Versions: 4
Compression:
Stored size: 494 Bytes
Contents
# frozen_string_literal: true module ActionTable class Railtie < Rails::Railtie initializer 'action_table.add_helper' do |app| ActionTable.configure do |config| config.rails_host_app = app end ActiveSupport.on_load(:action_view) do require 'action_table/helper' include ActionTable::Helper end end initializer 'action_table.add_views' do |_app| ActionController::Base.prepend_view_path "#{__dir__}/views" end end end
Version data entries
4 entries across 4 versions & 1 rubygems