lib/sid/class_methods.rb in sid-0.0.3 vs lib/sid/class_methods.rb in sid-0.0.4
- old
+ new
@@ -1,9 +1,9 @@
module Sid
module ClassMethods
extend ActiveSupport::Concern
included do
before_create :set_sid_column
- validates sid_config[:sid_column], :uniqueness => true
+ validates sid_config[:sid_column], :uniqueness => {:scope => sid_config[:scoped_by]}
end
end
end