This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// app/chart/c3NewChart.js | |
// custom directive to create charts (c3 wraps d3) | |
// -------------------------------------------------------------------------------- | |
(function() { | |
'use strict'; | |
angular | |
.module('myApp') | |
.directive('c3NewChart', c3NewChart); |