has_images 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/has_images.rb +1 -1
  2. metadata +2 -2
data/lib/has_images.rb CHANGED
@@ -20,7 +20,7 @@ module HasImages
20
20
  EOF
21
21
 
22
22
  has_many :images, :as => :parentmodel, :dependent => :destroy, :order => 'id ASC', :class_name => "Digineo::#{self.class_name}::Image"
23
- has_one :avatar, :as => :parentmodel, :order => 'id ASC', :class_name => "Digineo::Image", :conditions => 'avatar=1'
23
+ has_one :avatar, :as => :parentmodel, :order => 'id ASC', :conditions => 'avatar=1', :class_name => "Digineo::#{self.class_name}::Image"
24
24
  has_many :galleries, :as => :parentmodel, :dependent => :destroy, :class_name => 'Digineo::ImageGallery'
25
25
 
26
26
  named_scope :with_avatar, :include => :avatar
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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dennis Meise
@@ -44,7 +44,7 @@ files:
44
44
  - lib/digineo/image.rb
45
45
  - rails/init.rb
46
46
  has_rdoc: true
47
- homepage: http://www.digineo.de
47
+ homepage: http://github.com/digineo/has_images
48
48
  licenses: []
49
49
 
50
50
  post_install_message: