Sha256: 99e01a47a2aa828ea585f5e6f8a8fd2f3df880967df1b6fbd049d84fcfa2dd2f

Contents?: true

Size: 423 Bytes

Versions: 7

Compression:

Stored size: 423 Bytes

Contents

# frozen_string_literal: true

require_relative 'helpers'

module Fatcow
  class Railtie < ::Rails::Railtie
    config.before_initialize do
      config.assets.paths << ASSET_ROOT
    end

    initializer "fatcow.view_helpers" do
      ActiveSupport.on_load(:action_view) do
        include Fatcow::Helpers
      end

      ActiveSupport.on_load(:active_record) do
        include Fatcow::Model
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fatcow-0.1.6 lib/fatcow/railtie.rb
fatcow-0.1.5 lib/fatcow/railtie.rb
fatcow-0.1.4 lib/fatcow/railtie.rb
fatcow-0.1.3 lib/fatcow/railtie.rb
fatcow-0.1.2 lib/fatcow/railtie.rb
fatcow-0.1.1 lib/fatcow/railtie.rb
fatcow-0.1.0 lib/fatcow/railtie.rb