Module: Clerk::ID
- Defined in:
- lib/clerk/id.rb
Class Method Summary collapse
Class Method Details
.[](prefix) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/clerk/id.rb', line 3 def self.[](prefix) Module.new do extend ActiveSupport::Concern included do attribute :id, :string, default: ->{ "#{prefix}_#{KSUID.new}" } end end end |