lib/adyen-admin/skin.rb
# union remote and local skins. Local skins are frozen to
# indicate no availble remote counter part which avoid update
union remote and local skins. Local skins are frozen to
indicate no availble remote counter part which avoid update
union remote and local skins . Local skins are frozen to indicate no availble remote counter part which avoid update
def all
          @all ||= {}.tap do |hash|
            if Adyen::Admin.authenticated?
              all_remote.each do |skin|
                hash[skin.code] = skin unless hash[skin.code]
              end
            end
            all_local.each do |skin|
              hash[skin.code] = skin unless hash[skin.code]
            end
          end.values
        end
def all @all ||= { } . tap do | hash | if Adyen :: Admin . authenticated? all_remote . each do | skin | hash [ skin . code ] = skin unless hash [ skin . code ] end end all_local . each do | skin | hash [ skin . code ] = skin unless hash [ skin . code ] end end . values end
union remote and local skins.
union remote and local skins .