module Create::AutoIds
Public Instance Methods
next(klass)
click to toggle source
Get the next auto-incrementing id for the given klass
# File lib/fabrial/create.rb, line 24 def next(klass) id = @ids[klass] || 1 @ids[klass] += 1 id end