module Stormpath::Resource::AccountOverrides
Public Instance Methods
create_account(account, registration_workflow_enabled = nil)
click to toggle source
# File lib/stormpath-sdk/resource/account_overrides.rb 7 def create_account(account, registration_workflow_enabled = nil) 8 href = accounts.href 9 if registration_workflow_enabled == false 10 href += "?registrationWorkflowEnabled=#{registration_workflow_enabled}" 11 end 12 13 resource = case account 14 when Stormpath::Resource::Base 15 account 16 else 17 Stormpath::Resource::Account.new(account, client) 18 end 19 20 resource.apply_custom_data_updates_if_necessary 21 data_store.create(href, resource, Stormpath::Resource::Account) 22 end