1
0
Fork 0

Fix comments

This commit is contained in:
Alex Kotov 2018-12-13 12:01:06 +05:00
parent 3d0019bcf2
commit a81152ab80
No known key found for this signature in database
GPG key ID: 4E831250F47DE154
4 changed files with 10 additions and 10 deletions

View file

@ -3,7 +3,7 @@
class Staff::MembershipAppsController < ApplicationController
before_action :set_membership_app, except: :index
# GET /membership_apps
# GET /staff/membership_apps
def index
authorize %i[staff membership_app]
@membership_apps = policy_scope(
@ -12,7 +12,7 @@ class Staff::MembershipAppsController < ApplicationController
)
end
# GET /membership_apps/:id
# GET /staff/membership_apps/:id
def show
authorize [:staff, @membership_app]
end

View file

@ -5,7 +5,7 @@ class Staff::Passports::PassportConfirmationsController < ApplicationController
before_action :set_passport, only: %i[index create]
# GET /passports/:passport_id/passport_confirmations
# GET /staff/passports/:passport_id/passport_confirmations
def index
@passport_confirmations = policy_scope(
@passport.passport_confirmations,
@ -13,7 +13,7 @@ class Staff::Passports::PassportConfirmationsController < ApplicationController
)
end
# POST /passports/:passport_id/passport_confirmations
# POST /staff/passports/:passport_id/passport_confirmations
def create
ActiveRecord::Base.transaction do
ConfirmPassport.call(passport: @passport,

View file

@ -3,7 +3,7 @@
class Staff::PassportsController < ApplicationController
before_action :set_passport, except: %i[index new create]
# GET /passports
# GET /staff/passports
def index
@passports = policy_scope(
Passport,
@ -11,13 +11,13 @@ class Staff::PassportsController < ApplicationController
)
end
# GET /passports/:id
# GET /staff/passports/:id
def show
authorize [:staff, @passport]
@passport.passport_maps.build if @passport.passport_map.nil?
end
# GET /passports/new
# GET /staff/passports/new
def new
@passport = Passport.new
@passport.passport_maps.build
@ -25,7 +25,7 @@ class Staff::PassportsController < ApplicationController
authorize [:staff, @passport]
end
# POST /passports
# POST /staff/passports
def create
@passport = Passport.new permitted_attributes [:staff, Passport]

View file

@ -3,7 +3,7 @@
class Staff::TelegramBotsController < ApplicationController
before_action :set_telegram_bot, except: :index
# GET /telegram_bots
# GET /staff/telegram_bots
def index
authorize %i[staff telegram_bot]
@telegram_bots = policy_scope(
@ -12,7 +12,7 @@ class Staff::TelegramBotsController < ApplicationController
)
end
# GET /telegram_bots/:id
# GET /staff/telegram_bots/:id
def show
authorize [:staff, @telegram_bot]
end