Sha256: 818ab42e88a2e989a5b387de5ff420ccb4a628d6beaf228a073a33f1ebcfd078
Contents?: true
Size: 339 Bytes
Versions: 2
Compression:
Stored size: 339 Bytes
Contents
# +AutoIncrement+ module AutoIncrement # +AutoIncrement::ActiveRecord+ module ActiveRecord extend ActiveSupport::Concern # +AutoIncrement::ActiveRecord::ClassMethods+ module ClassMethods def auto_increment(column = nil, options = {}) before_create Incrementor.new(column, options) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
auto_increment-1.3.0 | lib/auto_increment/active_record.rb |
auto_increment-1.2.0 | lib/auto_increment/active_record.rb |