# -*- Coding: utf-8 -*- require "cuba" require 'cuba_api/write_aspect' require 'cuba_api/serializer' require 'cuba_api/current_user' require 'cuba_api/guard' require 'cuba_api/accept_content' class CubaAPI < Cuba def self.map @map ||= {} end def self.[]( key ) map[ key ] || settings[ key ] || (superclass == Cuba ? Cuba.settings[ key ] : superclass[ key ]) end def self.[]=( key, value ) map[ key ] = value end plugin CubaApi::WriteAspect plugin CubaApi::Serializer plugin CubaApi::AcceptContent plugin CubaApi::CurrentUser plugin CubaApi::Guard end