has_images 0.0.1 → 0.0.2

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 (3) hide show
  1. data/README.md +1 -1
  2. data/init.rb +1 -1
  3. metadata +1 -1
data/README.md CHANGED
@@ -3,7 +3,7 @@ Digineo HasImages gem
3
3
 
4
4
  ## Description
5
5
  HasImages adds images and galleries to your ActiveRecord models.
6
- It comes with the follwing mehtods:
6
+ It comes with the follwing methods:
7
7
 
8
8
  model.images # returns a list of all images
9
9
  model.avatar # returns the image with the avatar flag e.g. the first image
data/init.rb CHANGED
@@ -12,5 +12,5 @@ Paperclip.interpolates :parent do |attachment, style|
12
12
  end
13
13
 
14
14
  Paperclip.interpolates :parent_name do |attachment, style|
15
- attachment.instance.parentmodel.seo_name
15
+ attachment.instance.parentmodel.seo_name rescue attachment.instance.parentmodel.to_s
16
16
  end
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.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dennis Meise