Updated

app/models/concerns / perishable_token_generator.rb

A
11 lines of codes
1 methods
3.9 complexity/method
3 churn
3.86 complexity
0 duplications
module PerishableTokenGenerator
  1. PerishableTokenGenerator has no descriptive comment
extend ActiveSupport::Concern class_methods do def has_perishable_token(called: 'perishable_token') before_create do write_attribute(called, Authlogic::Random.friendly_token) end end end end