Sha256: f4abe9a973c4a3bbc29db738ca3a810dda9c798a3dd2dc913b40cb8c4a3989da

Contents?: true

Size: 248 Bytes

Versions: 3

Compression:

Stored size: 248 Bytes

Contents

class Visitor
  extend ActiveModel::Callbacks
  include ActiveModel::Validations
  include ActiveModel::OneTimePassword

  define_model_callbacks :create
  attr_accessor :otp_token, :email

  has_one_time_password :column_name  => :otp_token

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
active_model_otp-1.0.0 test/models/visitor.rb
active_model_otp-0.1.0 test/models/visitor.rb
active_model_otp-0.0.2 test/models/visitor.rb