Skip to content

Commit bbf09f9

Browse files
committed
use same name (raw_stats) for consistency
update to use the same name for the method and the memoizing instance variable.
1 parent aef76d8 commit bbf09f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/presenters/how_you_found_us_presenter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def data_present?
3939
private
4040

4141
def raw_stats
42-
@stats ||= @chapter.members.where.not(how_you_found_us: nil).group(:how_you_found_us).count
42+
@raw_stats ||= @chapter.members.where.not(how_you_found_us: nil).group(:how_you_found_us).count
4343
end
4444

4545
def how_values

0 commit comments

Comments
 (0)