houndci fixes
This commit is contained in:
parent
c67700e0ae
commit
a0aa523122
11 changed files with 39 additions and 36 deletions
|
|
@ -2,15 +2,13 @@ class Organization < ActiveRecord::Base
|
|||
attr_accessible :title, :photo, :email_id, :description, :website_url
|
||||
has_many :sponsorship_registrations, dependent: :destroy
|
||||
has_attached_file :photo,
|
||||
:styles => {:thumb => "100x100>", :large => "300x300>" }
|
||||
styles: { thumb: '100x100>', large: '300x300>' }
|
||||
|
||||
validates_attachment_content_type :photo,
|
||||
:content_type => [/jpg/, /jpeg/, /png/, /gif/],
|
||||
:size => { :in => 0..500.kilobytes }
|
||||
content_type: [/jpg/, /jpeg/, /png/, /gif/],
|
||||
size: { :in => 0..500.kilobytes }
|
||||
validates_presence_of :title,
|
||||
:email_id,
|
||||
:website_url
|
||||
validates_uniqueness_of :email_id
|
||||
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue