Sha256: 164fadfc6b83d2255f529fb7f3d50d1ab21d726694b9b6cef4ad8f5d7a868429

Contents?: true

Size: 285 Bytes

Versions: 5

Compression:

Stored size: 285 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_orms = [ ActiveRecord::Base ]
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_enum-0.9.7 lib/active_enum/railtie.rb
active_enum-0.9.6 lib/active_enum/railtie.rb
active_enum-0.9.5 lib/active_enum/railtie.rb
active_enum-0.9.4 lib/active_enum/railtie.rb
active_enum-0.9.3 lib/active_enum/railtie.rb