Sha256: d3bad59ba011fe0211e3ad5af5ec43c4cb0a4b8e922694c5fbbb7c7a074954c0

Contents?: true

Size: 261 Bytes

Versions: 2

Compression:

Stored size: 261 Bytes

Contents

require "dry-initializer"
require "rails"

# Rails plugin to dry-initializer gem
module Dry::Initializer::Rails
  extend Dry::Initializer::Mixin

  require_relative "rails/model"

  def self.extended(klass)
    klass.register_initializer_plugin Model
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dry-initializer-rails-0.0.3 lib/dry/initializer/rails.rb
dry-initializer-rails-0.0.2 lib/dry/initializer/rails.rb