We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a177db1 commit d75a1beCopy full SHA for d75a1be
app/controllers/home_controller.rb
@@ -1,13 +1,13 @@
1
class HomeController < ApplicationController
2
def show
3
- @dojo_count = Dojo.active_dojos_count
4
- @regions_and_dojos = Dojo.group_by_region_on_active
5
- @prefectures_and_dojos = Dojo.group_by_prefecture_on_active.transform_values do |dojos|
6
- count = dojos.pluck(:counter).sum
7
- {
8
- dojos: dojos,
9
- label: "#{count} Dojo#{'s' if count != 1}"
10
- }
+ @dojo_count = Dojo.active_dojos_count
+ @regions_and_dojos = Dojo.group_by_region_on_active
+ @prefectures_and_dojos = Dojo.group_by_prefecture_on_active.transform_values do |dojos|
+ count = dojos.pluck(:counter).sum
+ {
+ dojos: dojos,
+ label: "#{count} Dojo#{'s' if count != 1}"
+ }
11
end
12
13
0 commit comments