module Voltron::Encryptable
Public Instance Methods
encrypted_id()
click to toggle source
# File lib/voltron/encryptable.rb, line 8 def encrypted_id extend ClassMethods include InstanceMethods has_one :encryptable, as: :resource, class_name: "Voltron::Id" before_save -> (i) { i.build_encryptable(id: find_id) }, if: proc { |i| i.encryptable.blank? } end
has_encrypted_id?()
click to toggle source
# File lib/voltron/encryptable.rb, line 4 def has_encrypted_id? false end