class Rack::WebProfiler::Model::CollectionRecord

Public Instance Methods

before_create() click to toggle source

Generate a token to the record before create it.

# File lib/rack/web_profiler/model.rb, line 77
def before_create
  token      = Time.now.to_f.to_s.delete(".").to_i
  self.token = token.to_s(36)
end