Sha256: 6411f34f4d1ef4afc12601e0f34019125dff03780728e9fd87d183b02cfcd71d

Contents?: true

Size: 696 Bytes

Versions: 12

Compression:

Stored size: 696 Bytes

Contents

require "rails"
require 'testing/rspec'

class PowerEnum < Rails::Engine
  config.autoload_paths << File.expand_path(File.join(__FILE__, "../"))

  initializer 'power_enum' do
    ActiveSupport.on_load(:active_record) do
      include ActiveRecord::Acts::Enumerated
      include ActiveRecord::Aggregations::HasEnumerated
      include PowerEnum::Reflection

      ActiveRecord::ConnectionAdapters.module_eval do
        include PowerEnum::Schema::SchemaStatements
      end

      if defined?(ActiveRecord::Migration::CommandRecorder)
        ActiveRecord::Migration::CommandRecorder.class_eval do
          include PowerEnum::Migration::CommandRecorder
        end
      end
    end

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
power_enum-0.8.6 lib/power_enum.rb
power_enum-0.8.5 lib/power_enum.rb
power_enum-0.8.4 lib/power_enum.rb
power_enum-0.8.3 lib/power_enum.rb
power_enum-0.8.2 lib/power_enum.rb
power_enum-0.8.1 lib/power_enum.rb
power_enum-0.8.0 lib/power_enum.rb
power_enum-0.7.0 lib/power_enum.rb
power_enum-0.6.3 lib/power_enum.rb
power_enum-0.6.2 lib/power_enum.rb
power_enum-0.6.1 lib/power_enum.rb
power_enum-0.6.0 lib/power_enum.rb