Skip to content

Commit

Permalink
Takes out scope because the last time we used it was 2012
Browse files Browse the repository at this point in the history
  • Loading branch information
d-m-u committed Jan 8, 2018
1 parent bbcfcf6 commit 7b80b5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/customization_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class CustomizationTemplate < ApplicationRecord
has_many :pxe_images, :through => :pxe_image_type

validates :pxe_image_type, :presence => true, :unless => :system?
validates :name, :uniqueness => { :scope => :pxe_image_type }, :unique_within_region => true
validates :name, :unique_within_region => true

scope :with_pxe_image_type_id, ->(pxe_image_type_id) { where(:pxe_image_type_id => pxe_image_type_id) }
scope :with_system, ->(bool = true) { where(:system => bool) }
Expand Down

0 comments on commit 7b80b5b

Please sign in to comment.