Sha256: 9c6d86e7f19e1af72294888dfd4d622e822ba5f46cd2a1b21804e4209561153c
Contents?: true
Size: 385 Bytes
Versions: 2
Compression:
Stored size: 385 Bytes
Contents
class User extend ActiveModel::Callbacks include ActiveModel::Serializers::JSON include ActiveModel::Serializers::Xml include ActiveModel::Validations include ActiveModel::OneTimePassword define_model_callbacks :create attr_accessor :otp_secret_key, :email has_one_time_password def attributes { "otp_secret_key" => otp_secret_key, "email" => email } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_model_otp-2.1.0 | test/models/user.rb |
active_model_otp-2.0.1 | test/models/user.rb |