docbrown/app/controllers/stories
Jeremy Friesen a514ca39b8
Removing unused instance variable (#17414)
As I was looking into the implementation details of the `/t/:tag_name`
relevancy feed I noticed an instance variable that we do not need.

Below are the results of looking for the instance_variable
`@article_index` or a potential `article_index` local variable or method name.

```shell
❯ rg "@?article_index"
app/controllers/stories_controller.rb
28:    @article_index = true
131:    @article_index = true
162:    @organization_article_index = true

app/controllers/stories/tagged_articles_controller.rb
18:      @article_index = true

app/controllers/stories/articles_search_controller.rb
7:      @article_index = true

app/views/articles/_single_story.html.erb
26:          <% if story.cached_organization && !@organization_article_index %>
32:          <a href="/<%= story.cached_user.username %>" class="crayons-avatar <% if story.cached_organization && !@organization_article_index %> crayons-avatar--s absolute -right-2 -bottom-2 border-solid border-2 border-base-inverted <% else %> crayons-avatar--l <% end %> ">
79:            <% if story.cached_organization && !@organization_article_index %>
```
2022-04-25 10:43:21 -04:00
..
articles_search_controller.rb Removing unused instance variable (#17414) 2022-04-25 10:43:21 -04:00
feeds_controller.rb Allowing VariantQuery for Feed Generation (#17382) 2022-04-21 11:07:09 -04:00
pinned_articles_controller.rb app/controllers & decorators i18n (#16126) 2022-02-03 13:35:56 -05:00
tagged_articles_controller.rb Removing unused instance variable (#17414) 2022-04-25 10:43:21 -04:00