method

catch_editing_exceptions

rails latest stable - Class: Rails::Command::Helpers::Editor

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v7.0.0) is shown here.

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