Sha256: fc103be6cc70072486219273a05901b9b02741869fd7e2a851e0988ae66b2ae2

Contents?: true

Size: 500 Bytes

Versions: 22

Compression:

Stored size: 500 Bytes

Contents

class PlansController < ApplicationController
  layout Saucy::Layouts.to_proc

  def index
    @plans = Plan.ordered
  end

  def edit
    @plans = Plan.ordered
    @account = current_account
  end

  def update
    @plans = Plan.ordered
    @account = current_account
    if @account.save_customer_and_subscription!(params[:account])
      redirect_to edit_account_path(@account), :notice => t('.update.notice', :default => "Plan changed successfully")
    else
      render :edit
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
saucy-0.2.28.1 app/controllers/plans_controller.rb
saucy-0.2.42 app/controllers/plans_controller.rb
saucy-0.2.41 app/controllers/plans_controller.rb
saucy-0.2.40 app/controllers/plans_controller.rb
saucy-0.2.39 app/controllers/plans_controller.rb
saucy-0.2.38 app/controllers/plans_controller.rb
saucy-0.2.36 app/controllers/plans_controller.rb
saucy-0.2.35 app/controllers/plans_controller.rb
saucy-0.2.34 app/controllers/plans_controller.rb
saucy-0.2.33 app/controllers/plans_controller.rb
saucy-0.2.32 app/controllers/plans_controller.rb
saucy-0.2.31 app/controllers/plans_controller.rb
saucy-0.2.30 app/controllers/plans_controller.rb
saucy-0.2.29 app/controllers/plans_controller.rb
saucy-0.2.28 app/controllers/plans_controller.rb
saucy-0.2.27 app/controllers/plans_controller.rb
saucy-0.2.26 app/controllers/plans_controller.rb
saucy-0.2.25 app/controllers/plans_controller.rb
saucy-0.2.24 app/controllers/plans_controller.rb
saucy-0.2.21 app/controllers/plans_controller.rb