lib/pay/braintree/billable.rb
# Handles Billable#customer
#
# Returns Braintree::Customer
Handles Billable#customer
Returns Braintree::Customer
Handles Billable#customer Returns Braintree :: Customer
def braintree_trial_end_date(subscription)
        return unless subscription.trial_period
        Time.parse(subscription.first_billing_date).end_of_day
      end
def braintree_trial_end_date ( subscription ) return unless subscription . trial_period Time . parse ( subscription . first_billing_date ) . end_of_day end
Handles Billable#customer
Returns Braintree::Customer
Handles Billable#customer Returns Braintree :: Customer
# Braintree returns dates without time zones, so we'll assume they're UTC
subscription