12 lines
349 B
Ruby
12 lines
349 B
Ruby
|
module AccountCreator
|
||
|
def trigger_account_creation(account_creator)
|
||
|
creation_data = account_creator.enqueue_creation(self)
|
||
|
|
||
|
flash.now[:success] = 'User creation in progress'
|
||
|
# Template variables
|
||
|
@user_creation_id = creation_data[:id]
|
||
|
@user_name = creation_data[:id]
|
||
|
@redirect_url = CartoDB.url(self, 'dashboard')
|
||
|
end
|
||
|
end
|