Sha256: dee6e47dbc142977b165e5c0a8b0655e256f0b93e399aae44df304663c454595

Contents?: true

Size: 265 Bytes

Versions: 3

Compression:

Stored size: 265 Bytes

Contents

module EnumAccessor
  if defined? Rails::Railtie
  	class Railtie < Rails::Railtie
  	  initializer 'enum_accessor.insert_into_active_record' do |app|
  	    ActiveSupport.on_load :active_record do
  	      include EnumAccessor
  	    end
  	  end
  	end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
enum_accessor-0.2.0 lib/enum_accessor/railtie.rb
enum_accessor-0.1.1 lib/enum_accessor/railtie.rb
enum_accessor-0.1.0 lib/enum_accessor/railtie.rb