Sha256: 8131599d5646b742bd3e8449f2f6803bdd267474481f052b5bc22ba95a581d3b

Contents?: true

Size: 463 Bytes

Versions: 1

Compression:

Stored size: 463 Bytes

Contents

require 'hikari'

module Hikari
  class Railtie < Rails::Railtie
    initializer "hikari.configure" do |app|
      if defined? ::ActiveRecord
        ActiveSupport.on_load :active_record do
          require 'hikari/active_record'
          include Hikari::ActiveRecord
        end
      end

      ActiveSupport.on_load :action_view do
        require 'hikari/view_helpers/action_view'
        include Hikari::ViewHelpers::ActionView
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hikari-0.5.0 lib/hikari/railtie.rb