[#247] small refactoring mass builds controller

This commit is contained in:
Alexander Machehin 2013-08-02 17:39:09 +06:00
parent 12fa792ddd
commit d3e1a2be23
1 changed files with 1 additions and 3 deletions

View File

@ -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"))