app/models/archangel/widget.rb in archangel-0.0.5 vs app/models/archangel/widget.rb in archangel-0.0.6

- old
+ new

@@ -11,10 +11,10 @@ after_destroy :column_reset validates :content, presence: true validates :name, presence: true - validates :slug, presence: true, uniqueness: true + validates :slug, presence: true, uniqueness: { scope: :site_id } validate :valid_liquid_content belongs_to :site belongs_to :template, -> { where(partial: true) },