has_images 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/digineo/image.rb +1 -1
  2. metadata +2 -2
data/lib/digineo/image.rb CHANGED
@@ -17,7 +17,7 @@ class Digineo::Image < ActiveRecord::Base
17
17
  has_attached_file :file
18
18
 
19
19
 
20
- validates_attachment_presence :file, :unless => :file_url_provided?
20
+ validates_attachment_presence :file, :unless => :file_url_provided?, :on => :create
21
21
  validates_presence_of :parentmodel
22
22
  before_validation :download_remote_file, :if => :file_url_provided?
23
23
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_images
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dennis Meise
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-03-19 00:00:00 +01:00
12
+ date: 2010-04-27 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency