rails-add_ons 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38dfc7296961120d4480e74f0e8ae4f37639d5b4
4
- data.tar.gz: dc9461478a926c1b05b3a4d58224e7a10e39e5e4
3
+ metadata.gz: '0903bda7a75306ac454603360270dfb67c54f668'
4
+ data.tar.gz: f04bfc196cd2f0409586e1fa52383ef9c15f9175
5
5
  SHA512:
6
- metadata.gz: 368ee1a7318c3c181c362280a8042ba49a8e53678aff8af2506ab97e648fb9f157c7d580bb64d281672205a98565dff37b638f263ca98df6b8c8835d5654202d
7
- data.tar.gz: 7d75f4bcda5f292c1cbec5952e7f0b480c24bafedeba2a4c72928b2d665890ee4095cd82a3c19f7280d57df26808a1cc936992be733ce7c8127d379c44f24655
6
+ metadata.gz: e27dea31a057e110aab9e391739160ddd5cc584f7280d72286dca7eeb5125c912c8e08a6d679338ebd935195eb6791ed374f253bc5bfca5f77b183da484af879
7
+ data.tar.gz: efecd44124b8ad9f8e874f6c9fa31290a9e22a89f5a05715cafcfaa5f0eae248af654d86a9d7dbe5fbcb1445a4ab06cb1b53ddbf66074f0d313ca33041a2b1cf
@@ -19,6 +19,7 @@ module Component
19
19
  options.reverse_merge!(block: block) if block_given?
20
20
  @columns[name] = options
21
21
  end
22
+
22
23
  def timestamp(name, options = {}, &block)
23
24
  options.reverse_merge!(render_as: :timestamp, format: nil)
24
25
  column(name, options, &block)
@@ -1,5 +1,5 @@
1
1
  - label = if options[:label_method].present?
2
- - resource.send(name).send(options[:label_method])
2
+ - resource.send(name).try(options[:label_method])
3
3
  - else
4
4
  - resource.send(name)
5
5
  - link_to = options[:link_to]
@@ -1,5 +1,5 @@
1
1
  module Rails
2
2
  module AddOns
3
- VERSION = '2.1.0'.freeze
3
+ VERSION = '2.1.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-add_ons
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-25 00:00:00.000000000 Z
11
+ date: 2018-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails