[#247] small refactoring mass builds controller
This commit is contained in:
parent
12fa792ddd
commit
d3e1a2be23
|
@ -11,9 +11,7 @@ class Platforms::MassBuildsController < Platforms::BaseController
|
||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
@mass_build = @platform.mass_builds.build params[:mass_build]
|
@mass_build.user, @mass_build.arches = current_user, params[:arches]
|
||||||
@mass_build.user = current_user
|
|
||||||
@mass_build.arches = params[:arches]
|
|
||||||
|
|
||||||
if @mass_build.save
|
if @mass_build.save
|
||||||
redirect_to(platform_mass_builds_path(@platform), :notice => t("flash.platform.build_all_success"))
|
redirect_to(platform_mass_builds_path(@platform), :notice => t("flash.platform.build_all_success"))
|
||||||
|
|
Loading…
Reference in New Issue