Sha256: fcab2558ab8c2420fcf20013c9e992e8724de4fb7e16ef6364c012e4c73c7552

Contents?: true

Size: 641 Bytes

Versions: 32

Compression:

Stored size: 641 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
    Saucy::Configuration.notify("plan_upgraded", :account => @account,
                                                 :request => request)
    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

32 entries across 32 versions & 2 rubygems

Version Path
saasy-0.0.2.alpha3 app/controllers/plans_controller.rb
saasy-0.0.2.alpha2 app/controllers/plans_controller.rb
saasy-0.0.2.alpha1 app/controllers/plans_controller.rb
saucy-0.8.4 app/controllers/plans_controller.rb
saucy-0.8.3 app/controllers/plans_controller.rb
saasy-0.0.1 app/controllers/plans_controller.rb
saucy-0.8.2 app/controllers/plans_controller.rb
saucy-0.8.1 app/controllers/plans_controller.rb
saucy-0.8.0 app/controllers/plans_controller.rb
saucy-0.7.3 app/controllers/plans_controller.rb
saucy-0.7.2 app/controllers/plans_controller.rb
saucy-0.7.1 app/controllers/plans_controller.rb
saucy-0.7.0 app/controllers/plans_controller.rb
saucy-0.6.1 app/controllers/plans_controller.rb
saucy-0.6.0 app/controllers/plans_controller.rb
saucy-0.5.5 app/controllers/plans_controller.rb
saucy-0.5.4 app/controllers/plans_controller.rb
saucy-0.5.3 app/controllers/plans_controller.rb
saucy-0.5.2 app/controllers/plans_controller.rb
saucy-0.5.1 app/controllers/plans_controller.rb