Skip to content

Commit

Permalink
addressing some issues with view objects and nils
Browse files Browse the repository at this point in the history
  • Loading branch information
adahmash committed Mar 27, 2012
1 parent 149b751 commit f73ab65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/models/view_object.rb
Expand Up @@ -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
Expand Down
Expand Up @@ -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
Expand Down

0 comments on commit f73ab65

Please sign in to comment.