#6: remove "ProductBuildList#arch_id" field from UI
This commit is contained in:
parent
d85039d5be
commit
1f1cf175fd
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue