Sha256: f9f5da75c0a73b3f50b2a284b50f8c957ff2df51a96de84f778ad1226b3d753d

Contents?: true

Size: 287 Bytes

Versions: 10

Compression:

Stored size: 287 Bytes

Contents

# encoding: utf-8
require 'rails'
require 'enum_field'

module EnumField
  class Railtie < ::Rails::Railtie
    config.before_initialize do
      ActiveSupport.on_load :active_record do
        ActiveRecord::Base.send(:extend, EnumField::EnumeratedAttribute)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
galetahub-enum_field-0.2.2 lib/enum_field/railtie.rb
galetahub-enum_field-0.2.1 lib/enum_field/railtie.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/galetahub-enum_field-0.2.0/lib/enum_field/railtie.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/galetahub-enum_field-0.2.0/lib/enum_field/railtie.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/galetahub-enum_field-0.2.0/lib/enum_field/railtie.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/galetahub-enum_field-0.2.0/lib/enum_field/railtie.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/galetahub-enum_field-0.2.0/lib/enum_field/railtie.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/galetahub-enum_field-0.2.0/lib/enum_field/railtie.rb
galetahub-enum_field-0.2.0 lib/enum_field/railtie.rb
galetahub-enum_field-0.1.4 lib/enum_field/railtie.rb