lib/story_query.rb
Method find_by_ids
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def self.find_by_ids(story_ids, current_user)
stories = Story.where(id: story_ids)
.for_user(current_user)
.preload(:target, substories: %i(target))
.includes(:user, :substories,