cambium 1.0.3 → 1.0.4

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: b3fc961eef1531e625ec080e8f57f1a1b8fa4afe
4
- data.tar.gz: 656096ab825be1f7705c02c7d73ceae261aaf45f
3
+ metadata.gz: 151475ac069e0a44ad489ab9340b9041d3c3ba20
4
+ data.tar.gz: 2fd26503a744a7dd999eed2a40a72617b5f46323
5
5
  SHA512:
6
- metadata.gz: c3f55d5a9511954aaf4b392568a7ecb162425849dab3336cc8f01b65602d4f897e0a488b417cc428f2e78b2a3f5a3383866079c8e3cd259e53be322a2fc835af
7
- data.tar.gz: 20b43e1fd566cdded005a6237e1640be80f661968aa43e4554fb39f415b19a79af1a835540f34293bdd354ecb88681489007d4b2ca2827f36f63fd0e88f655db
6
+ metadata.gz: eed0446889aa382fcd3eb124c23622bb6757e0e7e0ef1693edc51ba10dae9797050f91152bd2abc49095bdab0bf2641380ccf147857ecb2ded8c9c8db2d4d8d2
7
+ data.tar.gz: f53a44e5a2cd9cd47ca57c69a0186208a8397e7e5404c69f3af6d4be533bf9feab67e1d20d58a0ef57aadf6201776fc9ecada8a65240dbefefbaa7a51fc44f4a
@@ -189,7 +189,11 @@ module Cambium
189
189
  begin
190
190
  cambium.send(path, obj)
191
191
  rescue
192
- main_app.send(path, obj)
192
+ begin
193
+ main_app.send(path, obj)
194
+ rescue
195
+ nil
196
+ end
193
197
  end
194
198
  end
195
199
 
@@ -7,13 +7,17 @@
7
7
  <%= "#{time_ago_in_words(version.created_at)} ago" %>
8
8
  </p>
9
9
  <p class="action">
10
- <%= content_tag(:strong, user.name) %>
10
+ <%= content_tag(:strong, user.name.present? ? user.name : user.email) %>
11
11
  <%= "#{version.event}d" %>
12
12
  <%= version.item_type.downcase %>
13
- <%= content_tag(
14
- :strong,
15
- link_to(version.item.to_s, cambium_edit_route(version.item))
16
- ) %>
13
+ <% if cambium_edit_route(version.item).nil? %>
14
+ <%= content_tag(:strong, version.item.to_s) %>
15
+ <% else %>
16
+ <%= content_tag(
17
+ :strong,
18
+ link_to(version.item.to_s, cambium_edit_route(version.item))
19
+ ) %>
20
+ <% end %>
17
21
  </p>
18
22
  </div>
19
23
  </article>
@@ -1,3 +1,3 @@
1
1
  module Cambium
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cambium
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean C Davis
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-04-28 00:00:00.000000000 Z
12
+ date: 2015-04-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler