Sha256: 6663d7baa7e2854a585ff75dcee1edc8f3e7a41d06bc914868e3218f44cb3765

Contents?: true

Size: 544 Bytes

Versions: 4

Compression:

Stored size: 544 Bytes

Contents

module Nifty
  module KeyValueStore
    class Railtie < Rails::Railtie #:nodoc:
      
      initializer 'nifty.key_value_store.initialize' do

        ActiveSupport.on_load(:active_record) do
          require 'nifty/key_value_store/key_value_pair'
          require 'nifty/key_value_store/model_extension'
          ::ActiveRecord::Base.send :include, Nifty::KeyValueStore::ModelExtension
        end
        
      end
      
      generators do
        require 'nifty/key_value_store/migration_generator'
      end
      
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/nifty-key-value-store-1.0.2/lib/nifty/key_value_store/railtie.rb
nifty-key-value-store-1.0.2 lib/nifty/key_value_store/railtie.rb
nifty-key-value-store-1.0.1 lib/nifty/key_value_store/railtie.rb
nifty-key-value-store-1.0.0 lib/nifty/key_value_store/railtie.rb