https://github.com/balanced/balanced-api/pull/580/files#diff-1dddeca6e3d59b02ed1e5ae97983c55aR21


On Wed, May 7, 2014 at 3:45 PM, Kyungmin Kim <notifications@github.com>wrote:

> In app/models/card.js:
>
> > @@ -30,7 +30,29 @@ Balanced.Card = Balanced.FundingInstrument.extend(Ember.Validations, {
> >  		}
> >  	},
> >
> > -	type_name: 'Card',
> > +	// type_name: 'Card',
> > +	type_name: function () {
> > +		if(this.get('can_credit')) {
> > +			return 'Debit card';
> > +		} else {
> > +			return 'Credit card';
> > +		}
> > +	}.property('can_credit'),
> > +
> > +	can_credit: true, // TODO: remove this
>
> Is there a more reliable way to determine a card type (debit card vs.
> credit card) then?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/balanced/balanced-dashboard/pull/1226/files#r12407359>
> .
>