Sha256: 2ef5bb8d3e9708513daef0b54a7310ee82cd81d560df60a99691e3f608252022
Contents?: true
Size: 268 Bytes
Versions: 1
Compression:
Stored size: 268 Bytes
Contents
class User < ActiveRecord::Base has_many :articles has_secure_password before_save :create_remember_token def self.human_name model_name.human end private def create_remember_token self.remember_token = SecureRandom.urlsafe_base64 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adeia-0.3.0 | spec/test_app/app/models/user.rb |