spree_affiliate_links 1.1.3 → 1.1.4

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.
data/.gitignore CHANGED
@@ -8,3 +8,4 @@ tmp
8
8
  nbproject
9
9
  *.swp
10
10
  spec/dummy
11
+ spree_affiliate_links-*.gem
@@ -17,8 +17,8 @@
17
17
  <%= image.file_field :attachment %>
18
18
  <%= f.error_message_on :image %>
19
19
  <% end %>
20
- <% if image.object.present? %>
21
- <%= image_tag image.object.attachment.url(:small) %>
20
+ <% if @affiliate_link.image.attachment.present? %>
21
+ <%= image_tag @affiliate_link.image.attachment.url(:small) %>
22
22
  <% end %>
23
23
  <% end %>
24
24
  </div>
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.platform = Gem::Platform::RUBY
4
4
  s.name = 'spree_affiliate_links'
5
- s.version = '1.1.3'
5
+ s.version = '1.1.4'
6
6
  s.summary = 'Affiliate links with images for Spree using Paperclip.'
7
7
  # s.description = 'TODO: Add (optional) gem description here'
8
8
  s.required_ruby_version = '>= 1.8.7'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_affiliate_links
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-11 00:00:00.000000000 Z
12
+ date: 2012-09-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: spree_core