Sha256: 48ae861dd9bf4612593b79ae83c6df6537ec0fabcf518bd5a921470955d1324b

Contents?: true

Size: 207 Bytes

Versions: 1

Compression:

Stored size: 207 Bytes

Contents

module Enumitation
  autoload :ClassMethods, 'enumitation/class_methods'

  ActiveRecord::Base.class_eval do
    def self.inherited(subclass)
      subclass.extend ClassMethods
      super
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
enumitation-0.0.1 lib/enumitation.rb