#6: remove "ProductBuildList#arch_id" field from UI

This commit is contained in:
Vokhmin Alexey V 2013-03-07 14:24:33 +04:00
parent d85039d5be
commit 1f1cf175fd
3 changed files with 2 additions and 7 deletions

View File

@ -34,7 +34,8 @@ class ProductBuildList < ActiveRecord::Base
belongs_to :arch
belongs_to :user
# see: Issue #6
before_validation lambda { self.arch_id = Arch.find_by_name('x86_64').id }
validates :product_id,
:status,
:project_id,
@ -52,7 +53,6 @@ class ProductBuildList < ActiveRecord::Base
:params,
:project_version,
:commit_hash,
:arch_id,
:product_id
attr_readonly :product_id
serialize :results, Array

View File

@ -12,10 +12,6 @@
.rightlist= f.select :project_version, versions_for_group_select(pbl.project), :selected => params[:product_build_lists].try(:fetch, :project_version) || pbl.project.default_branch
.both
.leftlist= f.label :arch, t("activerecord.attributes.product_build_list.arch"), :class => :label
.rightlist= f.select :arch_id, Arch.recent.map{ |a| [a.name, a.id]}
.both
= render 'platforms/products/def_fields', :f => f
= f.submit t("layout.projects.build_button")

View File

@ -19,7 +19,6 @@
= render 'show_field', :key => :project_version, :value => product_build_list_version_link(pbl, true)
= render 'show_field', :key => :arch, :value => pbl.arch.name
- [:main_script, :params].each do |el|
= render 'show_field', :key => el, :value => pbl.send(el)