module Subscriptions
  class FixGapController < Subscriptions::BaseController
    def update
      authorize Gap
      @gap = Gap.save(params[:tenure])

      if !@gap.errors.present?
        flash[:success] = "Success"
      else
        flash[:error] = @gap.errors.full_messages.to_sentence
      end

      redirect_back
    end
  end
end