Sha256: 3596bf2a1722b45cfa27241dac405650ca75baf8eac25515577944e737d15ab6

Contents?: true

Size: 435 Bytes

Versions: 5

Compression:

Stored size: 435 Bytes

Contents

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

5 entries across 5 versions & 1 rubygems

Version Path
datewari-1.1.0 lib/datewari/railtie.rb
datewari-1.0.3 lib/datewari/railtie.rb
datewari-1.0.2 lib/datewari/railtie.rb
datewari-1.0.1 lib/datewari/railtie.rb
datewari-1.0.0 lib/datewari/railtie.rb