Skip to content

Instantly share code, notes, and snippets.

View emillee's full-sized avatar

emil lee emillee

  • New York / New Haven
View GitHub Profile
# user.rb
# ----------------------------------------------------------------------------------------
class User < ActiveRecord::Base
has_many :identities, dependent: :destroy, inverse_of: :user
has_many :projects, through: :user_projects, source: :project
has_many :oauth_contacts
has_many :wepay_payment_approvals, class_name: 'WepayPaymentApproval', foreign_key: :backer_id
has_many :projects_invested_in, through: :wepay_payment_approvals, source: :project
has_many :connections
// app/chart/c3NewChart.js
// custom directive to create charts (c3 wraps d3)
// --------------------------------------------------------------------------------
(function() {
'use strict';
angular
.module('myApp')
.directive('c3NewChart', c3NewChart);