lib/meibo/builder/role_builder.rb in meibo-0.16.0 vs lib/meibo/builder/role_builder.rb in meibo-0.17.0
- old
+ new
@@ -1,18 +1,18 @@
# frozen_string_literal: true
-require 'securerandom'
+require "securerandom"
module Meibo
class Builder
module RoleBuilder
extend BaseBuilder
def self.builder_attribute_names
- [:builder, :user, :organization, :user_profile]
+ %i[builder user organization user_profile]
end
- def initialize(builder:, sourced_id: SecureRandom.uuid, user:, organization:, user_profile: nil, **kw)
+ def initialize(builder:, user:, organization:, sourced_id: SecureRandom.uuid, user_profile: nil, **kw)
super(
sourced_id: sourced_id,
user_sourced_id: user.sourced_id,
org_sourced_id: organization.sourced_id,
user_profile_sourced_id: user_profile&.sourced_id,