inline_forms 1.3.41 → 1.3.42

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,12 @@
2
2
  InlineForms::SPECIAL_COLUMN_TYPES[:image_field]=:string
3
3
 
4
4
  def image_field_show(object, attribute)
5
- link_to_inline_edit object, attribute, image_tag(object.send(attribute).send(:palm).send(:url))
5
+ # if object.send(attribute).send(:present?)
6
+ # title = "Full Size: #{object.send(attribute).send(:url)}.<br />" + image_tag(object.send(attribute).send(:palm).send(:url))
7
+ # else
8
+ # title = ''
9
+ # end
10
+ link_to_inline_edit object, attribute, object.send(attribute).send(:present?) ? image_tag(object.send(attribute).send(:palm).send(:url)) : object.send(attribute).to_s
6
11
  end
7
12
 
8
13
  def image_field_edit(object, attribute)
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module InlineForms
3
- VERSION = "1.3.41"
3
+ VERSION = "1.3.42"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inline_forms
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.41
4
+ version: 1.3.42
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-06-25 00:00:00.000000000 Z
12
+ date: 2012-06-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rvm