Sha256: fc26c694618825769e2fdcaa0d2aac71c7e9b9f304d150b8f5d081a6e5062124

Contents?: true

Size: 417 Bytes

Versions: 1

Compression:

Stored size: 417 Bytes

Contents

module AutomaticRecord
  class Railtie < Rails::Engine

    config.autoload_paths << "#{root}/lib"

    config.generators do |g|
      g.test_framework :rspec
      g.fixture_replacement :factory_girl, dir: 'spec/factories'
    end

    initializer 'automatic_record' do
      ActiveSupport.on_load(:active_record) do
        ActiveRecord::Base.send :include, AutomaticRecord::AutoCreate
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
automatic_record-0.0.3 lib/automatic_record/engine.rb