Fixes houndci-bot warnings

This commit is contained in:
decabeza
2018-10-30 18:49:05 +01:00
parent 747aec3506
commit 884580206a
4 changed files with 23 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
class SiteCustomization::ContentBlock < ActiveRecord::Base
VALID_BLOCKS = %w(top_links footer subnavigation_left subnavigation_right)
VALID_BLOCKS = %w[top_links footer subnavigation_left subnavigation_right]
validates :locale, presence: true, inclusion: { in: I18n.available_locales.map(&:to_s) }
validates :name, presence: true, uniqueness: { scope: :locale }, inclusion: { in: VALID_BLOCKS }