parent
844eda88fe
commit
a19062b726
@ -0,0 +1,8 @@
|
||||
require 'open-uri'
|
||||
|
||||
module OpenURI
|
||||
def OpenURI.redirectable?(uri1, uri2) # :nodoc:
|
||||
uri1.scheme.downcase == uri2.scheme.downcase ||
|
||||
(/\A(?:http|https|ftp)\z/i =~ uri1.scheme && /\A(?:http|https|ftp)\z/i =~ uri2.scheme)
|
||||
end
|
||||
end
|
@ -0,0 +1,5 @@
|
||||
class AddHeaderRemoteUrlToAccounts < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
add_column :accounts, :header_remote_url, :string, null: false, default: ''
|
||||
end
|
||||
end
|
Loading…
Reference in new issue