Sha256: 7afcb4dfbb53ec7ba9e6e74aeb331539b02a19083da4cced7967fa09eef0b80b

Contents?: true

Size: 320 Bytes

Versions: 17

Compression:

Stored size: 320 Bytes

Contents

module ActiveEnum 
  class Railtie < Rails::Railtie
    initializer "active_enum.active_record_extensions" do
      ActiveSupport.on_load(:active_record) do
        require 'active_enum/acts_as_enum'

        ActiveEnum.extend_classes << ActiveRecord::Base
        ActiveEnum.extend_classes!
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
active_enum-1.2.1 lib/active_enum/railtie.rb
active_enum-1.2.0 lib/active_enum/railtie.rb
active_enum-1.1.0 lib/active_enum/railtie.rb
active_enum-1.0.0 lib/active_enum/railtie.rb
active_enum-1.0.0.rc8 lib/active_enum/railtie.rb
active_enum-1.0.0.rc7 lib/active_enum/railtie.rb
active_enum-1.0.0.rc6 lib/active_enum/railtie.rb
active_enum-1.0.0.rc5 lib/active_enum/railtie.rb
active_enum-1.0.0.rc4 lib/active_enum/railtie.rb
active_enum-1.0.0.rc3 lib/active_enum/railtie.rb
active_enum-1.0.0.rc2 lib/active_enum/railtie.rb
active_enum-1.0.0.rc1 lib/active_enum/railtie.rb
active_enum-1.0.0.pre lib/active_enum/railtie.rb
active_enum-0.9.12 lib/active_enum/railtie.rb
active_enum-0.9.11 lib/active_enum/railtie.rb
active_enum-0.9.10 lib/active_enum/railtie.rb
active_enum-0.9.9 lib/active_enum/railtie.rb