agenda-libre-ruby/app/controllers/regions_controller.rb

15 lines
260 B
Ruby

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