carnival 0.0.50 → 0.0.51

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b55ed3a81c938105381e9112d000d185b29bed13
4
- data.tar.gz: 6dbff9c17e6d1d185d95fa8ef60505e6de0adf1d
3
+ metadata.gz: f9911f6487a91963f1ec2a0e65b8fa582b8b8c17
4
+ data.tar.gz: 71bd753c90111dc5aaf8c6c521fbf7241c8a1bf1
5
5
  SHA512:
6
- metadata.gz: a45b60c9b4d2ec069a08282b8a9f88717cb6465628453c0c509a57829af4da8689c276ba774e62c59da6dca9d70cd466c86c926fb96b31428ea003255b9c15f2
7
- data.tar.gz: 2329f457434eabd3603a28729b77f95501836d58c9469d6127e7091e37481255b0eaab20eb8f811482860c377121a0e221bd28666af6fa71099f0e7930508b80
6
+ metadata.gz: ce0cbcb87cb585e4c0a78c62eb8d52d5b5eb6177f9984d1a5a6828fbbe82d79cab68e48de07046fd724f60add97df4c66dc781a179b464d25cb4e28315d72e48
7
+ data.tar.gz: 1a27475f3ab92d32923a45f25973c70214bf9c90c86df0ae85f47fb00011087b152e0a31b8199d5af1bbb4ebe93ca27f8048439b27bb1ca4e420a09346eecf84
@@ -59,7 +59,7 @@ module Carnival
59
59
  current_type = field_type(presenter,field)
60
60
  if current_type == :relation
61
61
  if show_only_value
62
- record.send(field.to_s).to_label
62
+ record.send(field.to_s).to_label unless record.send(field.to_s).nil?
63
63
  else
64
64
  return link_to presenter.relation_label(field.to_sym, record), presenter.relation_path(field.to_sym, record)
65
65
  end
@@ -1,3 +1,3 @@
1
1
  module Carnival
2
- VERSION = "0.0.50"
2
+ VERSION = "0.0.51"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carnival
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.50
4
+ version: 0.0.51
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vizir Software Studio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-14 00:00:00.000000000 Z
11
+ date: 2014-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails