instance method catch_editing_exceptions

Ruby on Rails 5.2.8.1

Since v5.2.8.1 Last seen in v7.0.10 Private

Available in: v5.2.8.1 v6.0.6 v6.1.7.10 v7.0.10

Signature

catch_editing_exceptions()

No documentation comment.

Source
# 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

Defined in railties/lib/rails/command/helpers/editor.rb line 25 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::Command::Helpers::Editor

Type at least 2 characters to search.

↑↓ navigate · open · esc close