app/controllers/iugu/plan_controller.rb in iugusdk-1.0.0.alpha.30 vs app/controllers/iugu/plan_controller.rb in iugusdk-1.0.0.alpha.31

- old
+ new

@@ -9,11 +9,10 @@ def change return unless params[:plan] params[:id] ? @account = current_user.accounts.find(params[:id]) : @account = current_user_account.account - subscription = Iugu::Api::Subscription.find @account.subscription_id.to_uuid.to_s - @account.clear_cached_subscription_features if subscription.change_plan params[:plan] + @account.change_plan(params[:plan]) get_index_data render 'iugu/plan/index' end