Sha256: d5d395d054217070f6b5bfd6453587851badbe42cab957025a77a317047adb86

Contents?: true

Size: 198 Bytes

Versions: 1

Compression:

Stored size: 198 Bytes

Contents

module Sid
  module ClassMethods
    extend ActiveSupport::Concern
    included do
      before_create :set_sid_column
      validates sid_config[:sid_column], :uniqueness => true
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sid-0.0.3 lib/sid/class_methods.rb