inline_forms 3.0.16 → 3.0.17

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODRlYjQ0MjAyM2Y5NDYyMmFmMjVhOTI2NTFkMmJhZDk0ODM0YjkzZQ==
4
+ MWQwMmUyNTU3OTE0MjRkODdjNDQ1ZDk0ZGQ3MTUxOThiMWQwOTdlOQ==
5
5
  data.tar.gz: !binary |-
6
- YmQxOTg5YTc3YmU2NDUwYjZmM2EyZjcxODA1OWE4MTAwZDVhYzA1Nw==
6
+ YzFkZWRkMzczYzhjYTEwM2RlNDYyYjVjMjg3MTYwZDAwYmRlYmVhNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NGYwZGM2NmI2OGM3MjA3MzM0ZmUxMDFmMmMxZWVlNzFlNjkyOTZiZmNiZDYx
10
- NmQxMzgxYWFjYzM1ZThkYTgxNzQ1OThkYjgyYzJkNTJiNTI5ZDUyNTcwYjky
11
- ZGUzOGEzYmI5NzcwZWViMDY0MDJiNzM5NjRkODliZjIyMWY3MWI=
9
+ YWViOGM1Nzc5ZDU2OTM0ZWM1ZmM4NmM4ZmRmMWZlOTFhZjUxYmNmYzU2Y2Yw
10
+ NTI2NmFhZDliNDk2YmVhZDQzMWZlYzhiYTdiYjQyNzQ0OWZhZGI2MjAwMmNk
11
+ ODgyNmEwMDdjYTYxODJmOWRmNzE1ZmFjMGU2ZmI2OTdiNWQ5Nzk=
12
12
  data.tar.gz: !binary |-
13
- OTAwOTgwYzc5YWQxY2Q1ZDRlYjU0M2IxNTZiZjJiOWMwM2VkNDcwZmI3Mjhi
14
- MmQ3NWYyZmY4ZmQxMDdkOGFlMDVmZjhkMTc1NTlhYTIxYjdkN2EzYTVmM2Rj
15
- MjM3MTc3NzUyZTk0YTA3M2Q5Y2Q2M2IwY2RkMDAzOTE3NjgyNzA=
13
+ YmJkOTRiZjExMDAwY2Q0NWI1ZWIxOTMwNTI0MjM4ODFjMjY1Y2Q5NGI3YmUw
14
+ MDNhOWY0MDBhOTMxYTM0ZGU1N2RmNDY2NDRkMWIzZDI3YzhjZDA5YTRkY2Ey
15
+ ODI0MjY3ZDUwYTc1MWY0MTMxMWRjNjMzMjMyYWY0MGQ1YmQzZDA=
@@ -3,12 +3,12 @@ InlineForms::SPECIAL_COLUMN_TYPES[:date_select]=:date
3
3
 
4
4
  # date
5
5
  def date_select_show(object, attribute)
6
- link_to_inline_edit object, attribute, object.send(attribute).nil? ? "<i class='fi-plus'></i>".html_safe : object.send(attribute).strftime("%d-%m-%Y")
6
+ link_to_inline_edit object, attribute, object.send(attribute).nil? ? "<i class='fi-plus'></i>".html_safe : object.send(attribute).to_date.strftime("%d-%m-%Y")
7
7
  end
8
8
 
9
9
  def date_select_edit(object, attribute)
10
10
  css_id = 'datepicker_' + object.class.to_s.underscore + '_' + object.id.to_s + '_' + attribute.to_s
11
- out = text_field_tag attribute, ( object.send(attribute).nil? ? "" : object.send(attribute).strftime("%d-%m-%Y") ), :id => css_id, :class =>'datepicker'
11
+ out = text_field_tag attribute, ( object.send(attribute).nil? ? "" : object.send(attribute).to_date.strftime("%d-%m-%Y") ), :id => css_id, :class =>'datepicker'
12
12
  out << "<script>$('##{css_id}').datepicker();</script>".html_safe
13
13
  end
14
14
 
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module InlineForms
3
- VERSION = "3.0.16"
3
+ VERSION = "3.0.17"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inline_forms
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.16
4
+ version: 3.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ace Suares
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-29 00:00:00.000000000 Z
11
+ date: 2015-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rvm