Sha256: 2199624df1a0d3a6c00c106b33c93db2d0f1627f63fee181c6774bbc131bb7ed

Contents?: true

Size: 836 Bytes

Versions: 30

Compression:

Stored size: 836 Bytes

Contents

# Copyright (c) 2005 Trevor Squires
# Released under the MIT License.  See the LICENSE file for more details.

require 'active_record/acts/enumerated'
require 'active_record/aggregations/has_enumerated'
ActiveRecord::Base.class_eval do
  include ActiveRecord::Acts::Enumerated
  include ActiveRecord::Aggregations::HasEnumerated
end

# Virtual enumerations are useful if you've got a ton of different
# enumerations and don't care to litter your models directory with them.
# It's also handy if you want to define singleton methods for your
# enumerated values.
# See virtual_sample.txt in this directory for more info
if File.exist?("#{RAILS_ROOT}/config/virtual_enumerations.rb")
  require 'active_record/virtual_enumerations'
  silence_warnings do
    eval(IO.read("#{RAILS_ROOT}/config/virtual_enumerations.rb"), binding)
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
tournament-5.0.0 webgui/vendor/plugins/enumerations_mixin/init.rb
tournament-4.2.0 webgui/vendor/plugins/enumerations_mixin/init.rb
tournament-4.0.2 webgui/vendor/plugins/enumerations_mixin/init.rb
tournament-4.0.0 webgui/vendor/plugins/enumerations_mixin/init.rb
tournament-3.3.3 webgui/vendor/plugins/enumerations_mixin/init.rb
tournament-3.3.2 webgui/vendor/plugins/enumerations_mixin/init.rb
tournament-3.3.1 webgui/vendor/plugins/enumerations_mixin/init.rb
tournament-3.3.0 webgui/vendor/plugins/enumerations_mixin/init.rb
tournament-3.2.2 webgui/vendor/plugins/enumerations_mixin/init.rb
tournament-3.2.1 webgui/vendor/plugins/enumerations_mixin/init.rb
tournament-3.2.0 webgui/vendor/plugins/enumerations_mixin/init.rb
tournament-3.1.1 webgui/vendor/plugins/enumerations_mixin/init.rb
tournament-3.1.0 webgui/vendor/plugins/enumerations_mixin/init.rb
tournament-3.0.3 webgui/vendor/plugins/enumerations_mixin/init.rb
tournament-3.0.2 webgui/vendor/plugins/enumerations_mixin/init.rb
tournament-3.0.1 webgui/vendor/plugins/enumerations_mixin/init.rb
tournament-3.0.0 webgui/vendor/plugins/enumerations_mixin/init.rb
tournament-2.1.2 webgui/vendor/plugins/enumerations_mixin/init.rb
tournament-2.2.1 webgui/vendor/plugins/enumerations_mixin/init.rb
tournament-2.1.0 webgui/vendor/plugins/enumerations_mixin/init.rb