ecm_pictures 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/ecm/pictures/picture.rb +2 -1
- data/lib/ecm/pictures/version.rb +1 -1
- metadata +1 -1
@@ -21,5 +21,6 @@ class Ecm::Pictures::Picture < ActiveRecord::Base
|
|
21
21
|
attr_accessible :description, :image, :name, :picture_gallery_id
|
22
22
|
|
23
23
|
# validations
|
24
|
-
validates :image, :attachment_presence => true
|
24
|
+
# validates :image, :attachment_presence => true
|
25
|
+
validates_attachment_presence :image
|
25
26
|
end
|
data/lib/ecm/pictures/version.rb
CHANGED