#231: fixed duplicate rows in table

This commit is contained in:
Vokhmin Alexey V 2013-07-25 15:02:44 +04:00
parent 8117bd1561
commit 0868bbc9b3
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ module PlatformsHelper
def platform_arch_settings(platform)
settings = platform.platform_arch_settings
settings |= Arch.where('id not in (?)', settings.pluck(:arch_id)).map do |arch|
settings |= Arch.where('id not in (?)', settings.map(&:arch_id)).map do |arch|
platform.platform_arch_settings.build(
:arch_id => arch.id,
:time_living => PlatformArchSetting::DEFAULT_TIME_LIVING