rubocop
This commit is contained in:
parent
961b3f2444
commit
f10af09164
5 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Api
|
module Api
|
||||||
module V2
|
module V2
|
||||||
class AttachmentsController < RestfulController
|
class AttachmentsController < RestfulController
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AttachmentsController < ApplicationController
|
class AttachmentsController < ApplicationController
|
||||||
before_action :set_attachment, only: [:destroy]
|
before_action :set_attachment, only: [:destroy]
|
||||||
after_action :verify_authorized
|
after_action :verify_authorized
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class AttachmentPolicy < ApplicationPolicy
|
class AttachmentPolicy < ApplicationPolicy
|
||||||
class Scope < Scope
|
class Scope < Scope
|
||||||
def resolve
|
def resolve
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Api
|
module Api
|
||||||
module V2
|
module V2
|
||||||
class AttachmentSerializer < ApplicationSerializer
|
class AttachmentSerializer < ApplicationSerializer
|
||||||
|
|
|
@ -7,7 +7,7 @@ Metamaps::Application.routes.draw do
|
||||||
root to: 'main#home', via: :get
|
root to: 'main#home', via: :get
|
||||||
get 'request', to: 'main#requestinvite', as: :request
|
get 'request', to: 'main#requestinvite', as: :request
|
||||||
|
|
||||||
resources :attachments, only: [:create, :destroy], shallow: true
|
resources :attachments, only: %i[create destroy], shallow: true
|
||||||
|
|
||||||
namespace :explore do
|
namespace :explore do
|
||||||
get 'active'
|
get 'active'
|
||||||
|
|
Loading…
Add table
Reference in a new issue