mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
81afcabd19
We are not encrypting attributes when loading models with the table missing. This way we make sure we only load the encrypted models when necessary during the encryption tests and prevent the problem of missing encrypted attributes due to having cached the class without them encrypted.
8 lines
129 B
Ruby
8 lines
129 B
Ruby
# frozen_string_literal: true
|
|
|
|
|
|
require "models/traffic_light"
|
|
|
|
class EncryptedTrafficLight < TrafficLight
|
|
encrypts :state
|
|
end
|