2014-08-06 14:47:47 +02:00
|
|
|
# Manage regions, mostly get stats out of them
|
2018-03-18 16:32:59 +01:00
|
|
|
class RegionsController < ApplicationController
|
2017-07-28 00:35:14 +02:00
|
|
|
has_scope :region
|
2018-03-18 16:32:59 +01:00
|
|
|
|
|
|
|
before_action :set_regions, only: [:index]
|
|
|
|
|
2018-04-05 22:00:07 +02:00
|
|
|
def index; end
|
|
|
|
|
2018-03-18 16:32:59 +01:00
|
|
|
private
|
|
|
|
|
|
|
|
def set_regions
|
|
|
|
@regions = apply_scopes Region.local
|
|
|
|
end
|
2014-01-02 00:21:49 +01:00
|
|
|
end
|