Skip to content

Commit

Permalink
Renames method and queries Story directly
Browse files Browse the repository at this point in the history
  • Loading branch information
christianschmidt committed May 31, 2013
1 parent 79aa9b3 commit a8f1ac2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fever_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def get_response(params, is_json = true)
end

if keys.include?(:saved_item_ids)
response[:saved_item_ids] = starred_stories.map{|s| s.id}.join(",")
response[:saved_item_ids] = all_starred_stories.map{|s| s.id}.join(",")
end

if params[:mark] == "item"
Expand Down Expand Up @@ -107,7 +107,7 @@ def unread_stories(since_id = nil)
end

def starred_stories
StoryRepository.starred
Story.where(is_starred: true)
end

def feeds
Expand Down

0 comments on commit a8f1ac2

Please sign in to comment.