lib/prefixed_ids.rb in prefixed_ids-1.0.0 vs lib/prefixed_ids.rb in prefixed_ids-1.0.1
- old
+ new
@@ -2,9 +2,11 @@
require "prefixed_ids/engine"
module PrefixedIds
MINIMUM_TOKEN_LENGTH = 24
+ class MinimumLengthError < StandardError; end
+
module Attribute
extend ActiveSupport::Concern
module ClassMethods
def has_prefix_id(prefix, attribute: :prefix_id, length: MINIMUM_TOKEN_LENGTH)