OSDN Git Service

fix license picture
[pettanr/pettanr.git] / app / models / license.rb
index a46c94c..7bfc26c 100644 (file)
@@ -11,6 +11,8 @@ class License < Peta::SystemResource
   validates :caption, :presence => true, :length => {:maximum => 30}
   validates :url, :presence => true, :length => {:maximum => 200}, :uniqueness => {:scope => :name}, :url => {:message => I18n.t('errors.messages.url')} #{:allow_blank => true}
   validates :system_picture_id, :presence => true, :numericality => true, :existence => {:both => false}
+  validates :license_group_settings, :boost => {:boost_name => :license_group}
+  validates :credit_picture_settings, :boost => {:boost_name => :credit_picture}
   
   def overwrite 
   end