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