parent
5cfc9c7487
commit
2816b1bf8e
@ -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