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

15 lines
260 B
Ruby
Raw Normal View History

# 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
2014-01-02 00:21:49 +01:00
end