class Devise::Async::Stretch::PopulateStretchMarksGenerator
Public Instance Methods
populate_stretch_marks()
click to toggle source
# File lib/generators/devise/async/stretch/populate_stretch_marks_generator.rb, line 12 def populate_stretch_marks name.constantize.to_adapter.find_all.each do |record| if record.stretch_mark.blank? record.update(stretch_mark: SecureRandom.hex(15)[0,29]) end end end