-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
Description
This works:
Foo < ActiveRecord::Base
generate_public_uid generator: PublicUid::Generators::HexStringSecureRandom.new(50)
end
foo = Foo.new
foo.save!
foo.public_uid.length # => 50this wil not
```ruby
Bar <Foo
end
foo = Foo.new
foo.save!
foo.public_uid.length # => 8
due to https://github.com/equivalent/public_uid/blob/master/lib/public_uid/model.rb#L25 instance method set the config is not copied across inheritance which is bad in this case
possible solution: use class variables @@generator =
Reactions are currently unavailable