Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

addressing some issues with view objects and nils

  • Loading branch information...
commit f73ab6556062421cd737535a4ad8d9e637dde180 1 parent 149b751
adahmash adahmash authored
4 app/models/view_object.rb
View
@@ -47,8 +47,8 @@ def add_dataset_deps
end
def rem_dataset_dep klass
- Newscloud::Redcloud.redis.srem dataset_key, klass.cache_id
- Newscloud::Redcloud.redis.srem klass.model_deps_key, self.cache_id
+ Newscloud::Redcloud.redis.srem dataset_key, klass.cache_id unless klass.nil?
+ Newscloud::Redcloud.redis.srem klass.model_deps_key, self.cache_id unless klass.nil?
end
def rem_dataset_deps
2  app/views/shared/templates/_single_col_list_with_profile.html.haml
View
@@ -11,7 +11,7 @@
- vo.dataset.each do |item|
%li
.story
- .profile-pic= local_linked_profile_pic item.item_user
+ .profile-pic= local_linked_profile_pic item.item_user unless item.nil?
%h5
%span.ellipsis_title_2= link_to sanitize_title(item.item_title), item.item_link
.meta-data
Please sign in to comment.
Something went wrong with that request. Please try again.