class Console1984::Shield::Modes::Protected
An execution mode that protects encrypted information and connection to external systems.
Public Instance Methods
execute(&block)
click to toggle source
# File lib/console1984/shield/modes/protected.rb, line 9 def execute(&block) protecting(&block) end
Private Instance Methods
protecting(&block)
click to toggle source
# File lib/console1984/shield/modes/protected.rb, line 14 def protecting(&block) protecting_connections do ActiveRecord::Encryption.protecting_encrypted_data(&block) end end
protecting_connections() { || ... }
click to toggle source
# File lib/console1984/shield/modes/protected.rb, line 20 def protecting_connections old_currently_protected_urls = self.currently_protected_urls self.currently_protected_urls = protected_urls yield ensure self.currently_protected_urls = old_currently_protected_urls end