13 lines
242 B
Ruby
13 lines
242 B
Ruby
# Manage regions, mostly get stats out of them
|
|
class RegionsController < ApplicationController
|
|
has_scope :region
|
|
|
|
before_action :set_regions, only: [:index]
|
|
|
|
private
|
|
|
|
def set_regions
|
|
@regions = apply_scopes Region.local
|
|
end
|
|
end
|