blob: 4c260e3183feb5dcdc2aa1705f448888416259b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# frozen_string_literal: true
module Releases
module Links
REASON_BAD_REQUEST = :bad_request
REASON_NOT_FOUND = :not_found
REASON_FORBIDDEN = :forbidden
class BaseService
attr_accessor :release, :current_user, :params
def initialize(release, current_user = nil, params = {})
@release = release
@current_user = current_user
@params = params.dup
end
private
def allowed_params
Params.new(params).allowed_params
end
end
end
end
|