Sha256: 3692079b2af96280b89f4780b7e8a59ce52e7700dea42e6e6aeaecea111d8029

Contents?: true

Size: 493 Bytes

Versions: 6

Compression:

Stored size: 493 Bytes

Contents

require 'hauler'
require 'rails'
require 'hauler/helpers/hauler_helper'
require 'active_support/core_ext/hash/indifferent_access'

# :nodoc:
module Hauler
  # :nodoc:
  class Railtie < Rails::Railtie
    config.hauler = ActiveSupport::OrderedOptions.new
    config.hauler.dev_server = false

    config.eager_load_namespaces << Hauler

    initializer 'hauler.helpers' do
      ::ActiveSupport.on_load(:action_view) do
        include Hauler::Helpers::HaulerHelper
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hauler-0.3.4 lib/hauler/railtie.rb
hauler-0.3.3 lib/hauler/railtie.rb
hauler-0.3.2 lib/hauler/railtie.rb
hauler-0.3.1 lib/hauler/railtie.rb
hauler-0.3.0 lib/hauler/railtie.rb
hauler-0.2.0 lib/hauler/railtie.rb