instance method
catch_editing_exceptions
Ruby on Rails 6.0.6
Since v5.2.8.1 Last seen in v7.0.10 PrivateSignature
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