app/controllers/account/platform/applications_controller.rb in bullet_train-api-1.1.2 vs app/controllers/account/platform/applications_controller.rb in bullet_train-api-1.1.3
- old
+ new
@@ -24,11 +24,11 @@
# POST /account/teams/:team_id/platform/applications
# POST /account/teams/:team_id/platform/applications.json
def create
respond_to do |format|
if @application.save
- format.html { redirect_to [:account, @team, :platform_applications], notice: I18n.t("platform/applications.notifications.created") }
+ format.html { redirect_to [:account, @application], notice: I18n.t("platform/applications.notifications.created") }
format.json { render :show, status: :created, location: [:account, @application] }
else
format.html { render :new, status: :unprocessable_entity }
format.json { render json: @application.errors, status: :unprocessable_entity }
end
@@ -61,18 +61,15 @@
private
# Never trust parameters from the scary internet, only allow the white list through.
def application_params
- strong_params = params.require(:platform_application).permit(
+ params.require(:platform_application).permit(
:name,
- :scopes,
:redirect_uri,
# 🚅 super scaffolding will insert new fields above this line.
# 🚅 super scaffolding will insert new arrays above this line.
)
# 🚅 super scaffolding will insert processing for new fields above this line.
-
- strong_params
end
end