Sha256: 6cd514986b6ba4ca7cb76aae3e690e5f324045df945a1a1d812f36e9c46dee05
Contents?: true
Size: 754 Bytes
Versions: 3
Compression:
Stored size: 754 Bytes
Contents
class BillingsController < ApplicationController before_filter :authorize_admin, :except => [:show] layout Saucy::Layouts.to_proc def show end def edit @account = current_account @account.cardholder_name = @account.credit_card.cardholder_name @account.billing_email = @account.customer.email @account.expiration_month = @account.credit_card.expiration_month @account.expiration_year = @account.credit_card.expiration_year end def update @account = current_account if @account.save_customer_and_subscription!(params[:account]) redirect_to account_billing_path(@account), :notice => t('.update.notice', :default => "Billing information updated successfully") else render :edit end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
saasy-0.0.2.alpha3 | app/controllers/billings_controller.rb |
saasy-0.0.2.alpha2 | app/controllers/billings_controller.rb |
saasy-0.0.2.alpha1 | app/controllers/billings_controller.rb |