Skip to content

Instantly share code, notes, and snippets.

View zacheryph's full-sized avatar

Zachery Hostens zacheryph

View GitHub Profile
class ArelReport
# == MIXINS
extend ActiveModel::Callbacks
define_model_callbacks :optionals, :only => [:after, :before]
define_model_callbacks :query, :only => :before
# == CLASS
class << self
attr_accessor :projections, :default_table, :remove_zeros
require 'sinatra/base'
class Bacon < Sinatra::Base
enable :logging, :clean_trace
get '/' do
'Hello from Sinatra!'
end
end