lib/classy_enum.rb in classy_enum-1.0.0 vs lib/classy_enum.rb in classy_enum-1.1.0

- old
+ new

@@ -1,5 +1,8 @@ -require "classy_enum/active_record" -require "classy_enum/base" -require "classy_enum/class_methods" -require "classy_enum/instance_methods" -require "classy_enum/attributes" +module ClassyEnum + autoload :Base, 'classy_enum/base' + autoload :InstanceMethods, 'classy_enum/instance_methods' + autoload :ClassMethods, 'classy_enum/class_methods' + autoload :Attributes, 'classy_enum/attributes' +end + +ActiveRecord::Base.send :extend, ClassyEnum::Attributes