From 4b7fdbee260f703c8d09bec60c55003b2c5528bd Mon Sep 17 00:00:00 2001 From: claucece Date: Wed, 16 Sep 2015 00:20:45 -0500 Subject: correctly set up comments --- app/models/user.rb | 9 ++++----- engines/billing/app/views/payments/new.html.erb | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index b5bbadf..52eabf2 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -176,11 +176,10 @@ class User < CouchRest::Model::Base @message.save if @message end - - def has_payment_info? - braintree_customer_id - end - + + # def has_payment_info? + # braintree_customer_id + # end protected ## diff --git a/engines/billing/app/views/payments/new.html.erb b/engines/billing/app/views/payments/new.html.erb index 3cdda01..002377c 100644 --- a/engines/billing/app/views/payments/new.html.erb +++ b/engines/billing/app/views/payments/new.html.erb @@ -2,8 +2,8 @@

Please enter your donation details (this is a donation and will not be applied towards your account):


<%= form_tag confirm_payment_path, id: "checkout-form" do %> - # add migration to user first. Not sure about the anonymous part. - # <%= render 'customer_form' unless current_user.has_payment_info? && current_user.where.not.is_anonymous? %> + <%# add migration to user first. Not sure about the anonymous part. %> + <%# render 'customer_form' unless current_user.has_payment_info? && current_user.where.not.is_anonymous? %>
-- cgit v1.2.3