Sha256: dd6eed6bedaa72fb34dfd7de4e913910e7e922e96f2e707b33198563e207c1fa

Contents?: true

Size: 466 Bytes

Versions: 1

Compression:

Stored size: 466 Bytes

Contents

# frozen_string_literal: true

module Datewari
  class Railtie < Rails::Railtie
    ActiveSupport.on_load :active_record do
      ActiveRecord::Base.send :extend, Extension
      ActiveRecord::Relation.send :include, Extension
    end

    ActiveSupport.on_load :action_view do
      ActionView::Base.send :include, Helper
    end

    ActiveSupport.on_load :i18n do
      I18n.load_path += Dir["#{File.expand_path('../locales', __FILE__)}/*.yml"]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datewari-1.1.1 lib/datewari/railtie.rb