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

13 lines
242 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]
private
def set_regions
@regions = apply_scopes Region.local
end
2014-01-02 00:21:49 +01:00
end