Sha256: b638de89a139127b1f64a64b72e2d9c61eb172cff564c1d7a98c8479f5ceaaa8

Contents?: true

Size: 239 Bytes

Versions: 5

Compression:

Stored size: 239 Bytes

Contents

require 'rails'
require 'belongs_to_enum'

module BelongsToEnum
  class Railtie < Rails::Railtie
    railtie_name :belongs_to_enum
    
    config.to_prepare do
      ActiveRecord::Base.send(:extend, BelongsToEnum::Hook)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
belongs_to_enum-0.4.0 lib/belongs_to_enum/railtie.rb
belongs_to_enum-0.3.1 lib/belongs_to_enum/railtie.rb
belongs_to_enum-0.3 lib/belongs_to_enum/railtie.rb
belongs_to_enum-0.2 lib/belongs_to_enum/railtie.rb
belongs_to_enum-0.1 lib/belongs_to_enum/railtie.rb