app/models/archangel/site.rb in archangel-0.0.7 vs app/models/archangel/site.rb in archangel-0.0.8
- old
+ new
@@ -5,15 +5,11 @@
# Site model
#
class Site < ApplicationRecord
acts_as_paranoid
- mount_uploader :favicon, Archangel::FaviconUploader
mount_uploader :logo, Archangel::LogoUploader
- validates :favicon, file_size: {
- less_than_or_equal_to: Archangel.config.favicon_maximum_file_size
- }
validates :locale, presence: true, inclusion: { in: Archangel::LANGUAGES }
validates :logo, file_size: {
less_than_or_equal_to: Archangel.config.image_maximum_file_size
}
validates :name, presence: true