Commit 809ba7e615d360daf78e505cee1f5e47b7ac580d
1 parent
36f9dc48
Exists in
master
and in
11 other branches
rails4: move hash key to symbol
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/statistics/lib/statistics_block.rb
| @@ -65,7 +65,7 @@ class StatisticsBlock < Block | @@ -65,7 +65,7 @@ class StatisticsBlock < Block | ||
| 65 | end | 65 | end |
| 66 | 66 | ||
| 67 | def is_template_counter_active? template_id | 67 | def is_template_counter_active? template_id |
| 68 | - self.templates_ids_counter[template_id.to_s].to_s == 'true' | 68 | + self.templates_ids_counter[template_id.to_s.to_sym].to_s == 'true' |
| 69 | end | 69 | end |
| 70 | 70 | ||
| 71 | def template_counter_count(template_id) | 71 | def template_counter_count(template_id) |