Project

General

Profile

« Previous | Next » 

Revision 713aaad1

Added by Shlomi Zadok almost 9 years ago

fixes #11122 - initialize ENCRYPTION_PREFIX only once

(cherry picked from commit b131eda1464e57b978007e9dd5c5daeb5b90af10)

View differences:

app/models/concerns/encryptable.rb
module Encryptable
extend ActiveSupport::Concern
ENCRYPTION_PREFIX = "encrypted-"
included do
ENCRYPTION_PREFIX = "encrypted-"
before_save :encrypt_setters
end

Also available in: Unified diff