method
catch_editing_exceptions
v6.1.7.7 -
Show latest stable
- Class:
Rails::Command::Helpers::Editor
catch_editing_exceptions()private
No documentation available.
# File railties/lib/rails/command/helpers/editor.rb, line 25
def catch_editing_exceptions
yield
rescue Interrupt
say "Aborted changing file: nothing saved."
rescue ActiveSupport::EncryptedFile::MissingKeyError => error
say error.message
end