mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-06 01:08:21 +01:00
code comments
This commit is contained in:
parent
859544565b
commit
d4cddc92fb
@ -1,3 +1,7 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
# API Controller for resources of type Abuse.
|
||||||
|
# Typical action is an user reporting an abuse on a project
|
||||||
class API::AbusesController < API::ApiController
|
class API::AbusesController < API::ApiController
|
||||||
before_action :authenticate_user!, except: :create
|
before_action :authenticate_user!, except: :create
|
||||||
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
# API Controller for resources of type User with role 'admin'.
|
||||||
class API::AdminsController < API::ApiController
|
class API::AdminsController < API::ApiController
|
||||||
before_action :authenticate_user!
|
before_action :authenticate_user!
|
||||||
|
|
||||||
|
@ -1,13 +1,16 @@
|
|||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
# API Controller for resources of type AgeRange
|
||||||
|
# AgeRange are used in Events
|
||||||
class API::AgeRangesController < API::ApiController
|
class API::AgeRangesController < API::ApiController
|
||||||
before_action :authenticate_user!, except: [:index]
|
before_action :authenticate_user!, except: [:index]
|
||||||
before_action :set_age_range, only: [:show, :update, :destroy]
|
before_action :set_age_range, only: %i[show update destroy]
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@age_ranges = AgeRange.all
|
@age_ranges = AgeRange.all
|
||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show; end
|
||||||
end
|
|
||||||
|
|
||||||
def create
|
def create
|
||||||
authorize AgeRange
|
authorize AgeRange
|
||||||
|
Loading…
x
Reference in New Issue
Block a user