Skip to content

Instantly share code, notes, and snippets.

View bradens's full-sized avatar
🖥️
Working from home

Braden Simpson bradens

🖥️
Working from home
View GitHub Profile
@bradens
bradens / api-lolesports-com_docs.md
Created November 6, 2019 17:35 — forked from brcooley/api-lolesports-com_docs.md
lolesports.com unofficial api docs

Unofficial documentation

This is an unofficial documentation for the internal lolesports.com api.

This documentation is uncomplete and currently only show all information I got so far. Please help me complete and correct this documentation.

Top level domain

The domain for the intern lolesports.com api is http://api.lolesports.com/api/.

# First configure your models to use Amazon s3 as storage option and setup the associated S3 config.
# Then add the classes your want to migrate in the klasses array below.
# Then run rake paperclip_migration:migrate_to_s3
# Should work but this is untested and may need some tweaking - but it did the job for me.
namespace :paperclip_migration do
desc "migrate files from filesystem to s3"
task :migrate_to_s3 => :environment do
klasses = [:product] # Replace with your real model names. If anyone wants to this could be picked up from args or from configuration.
klasses.each do |klass_key|
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
margin: 0;
}
.link {
fill: none;
stroke: #cc3333;