Skip to content

Commit 65a6bfc

Browse files
committed
Scout commit
1 parent 4475123 commit 65a6bfc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app/models/authorization_request_form.rb

+1-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ def self.all
1919
end
2020
end
2121

22-
# rubocop:disable Metrics/AbcSize
2322
def self.build(uid, hash)
2423
new(
2524
hash.slice(
@@ -32,15 +31,13 @@ def self.build(uid, hash)
3231
).merge(
3332
uid: uid.to_s,
3433
editor: hash[:editor_id].present? ? Editor.find(hash[:editor_id]) : nil,
35-
default: hash[:default].nil? ? false : hash[:default],
34+
default: hash[:default] || false,
3635
authorization_request_class: AuthorizationRequest.const_get(hash[:authorization_request]),
3736
templates: (hash[:templates] || []).map { |template_key, template_attributes| AuthorizationRequestTemplate.new(template_key, template_attributes) },
3837
steps: hash[:steps] || []
3938
)
4039
)
4140
end
42-
# rubocop:enable Metrics/AbcSize
43-
4441
delegate :provider, :unique?, to: :authorization_definition
4542

4643
def id

0 commit comments

Comments
 (0)