method
open_file
rails latest stable - Class:
ActionDispatch::TestHelpers::PageDumpHelper
open_file(path)private
No documentation available.
# File actionpack/lib/action_dispatch/testing/test_helpers/page_dump_helper.rb, line 23
def open_file(path)
require "launchy"
Launchy.open(path)
rescue LoadError
warn "File saved to #{path}.\nPlease install the launchy gem to open the file automatically."
end