Skip to content

Instantly share code, notes, and snippets.

@elvio
Created September 4, 2013 10:33
Show Gist options
  • Save elvio/6435322 to your computer and use it in GitHub Desktop.
Save elvio/6435322 to your computer and use it in GitHub Desktop.
def all
grouped.map do |provider, sources|
{name: provider, priority: priority_for(provider), offers: offers(sources)}
end.sort_by {|i| i[:priority]}.reject {|i| self.blacklist.include?(i[:name])}
end
def blacklist
if client.version < 2.6
@blacklist ||= [Amazon Maxdome, Google Play, Xbox, Mediamarkt, Videoload, Videobuster]
elsif is_landing_page
@black_list ||= [Amazon, Maxdome, Google Play, XBox, Mediamarkt, Videoload, Videobuster, Lovefilm, Watchever]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment