Sha256: bd4e5b2bba1bcd1bb1a3131affc4c5d414af4561898af5b78980f0cfc1f3a40f
Contents?: true
Size: 271 Bytes
Versions: 50
Compression:
Stored size: 271 Bytes
Contents
class User < ActiveRecord::Base has_many :articles has_secure_password before_save :create_remember_token def self.human_name model_name.i18n_key end private def create_remember_token self.remember_token = SecureRandom.urlsafe_base64 end end
Version data entries
50 entries across 50 versions & 1 rubygems