Skip to content

Instantly share code, notes, and snippets.

# This file describe a bug found in Active Record while migrating an old
# application from rails 3.2 to rails 6.0.1.
#
# with active record > 6.0.0rc2, the line below raises the following error:
# ActiveModel::UnknownAttributeError: unknown attribute 'shop' for
# Shop::HABTM_Contents.
#
# The bug was introduced by the following commit:
# https://github.com/rails/rails/commit/3b04715cda
# (https://github.com/rails/rails/pull/36776)
@meuble
meuble / Fliike API EN.markdown
Last active August 29, 2015 14:10
Fliike API

Fliike API

Presentation

Fliike works with a Carambola2 embeded card (http://www.8devices.com/carambola-2). It's a card mounted with a Qualcomm/Atheros AR9331 microprocesor and a Wifi module. It's shipped with a OpenWRT Linuw distribution.

A Luci HTTP server (http://luci.subsignal.org/) is installed and listen to the 80 port. A built in application answers to this interface via a bundle of commands forming a JSON API.

module Actions
def toto
p "toto"
end
end
class Foo
end
// An image preloader without using Image class nor document.images
// Built for a Facebook environment where those two are forbiden. May not work in a regular web page.
// Just change
function Preloader(options) {
var defaultSettings = {
preloaderID: "preloader_id",
container: document.body
};