inline_forms 1.4.3 → 1.4.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.
@@ -2,15 +2,18 @@
2
2
  # not needed here, since this is only used in the views InlineForms::SPECIAL_COLUMN_TYPES[:info]=:string
3
3
 
4
4
  def info_show(object, attribute)
5
- o = object.send attribute.to_sym
5
+ # show the attribute and if it's a date/time, make it nicer.
6
+ o = object[attribute]
6
7
  o = o.to_s + " (" + distance_of_time_in_words_to_now(o) + " ago )" if o.is_a?(Time)
7
8
  o
8
9
  end
9
10
 
10
- #def info_edit(object, attribute)
11
- # object[attribute]
12
- #end
13
- #
14
- #def info_update(object, attribute)
15
- #end
16
- #
11
+ def info_edit(object, attribute)
12
+ # just show the attribute.
13
+ object[attribute]
14
+ end
15
+
16
+ def info_update(object, attribute)
17
+ # do absolutely nothing
18
+ end
19
+
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module InlineForms
3
- VERSION = "1.4.3"
3
+ VERSION = "1.4.4"
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.4.3
4
+ version: 1.4.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: