d5a4239d19
to be more generic for the open-source release. Find the signal account via Account#external_account Find the signal user via User#external_user
19 lines
395 B
Ruby
19 lines
395 B
Ruby
class Account < ApplicationRecord
|
|
include Entropic, Joinable
|
|
|
|
has_many_attached :uploads
|
|
|
|
def slug
|
|
"/#{tenant_id}"
|
|
end
|
|
|
|
def setup_basic_template
|
|
user = User.first
|
|
|
|
Closure::Reason.create_defaults
|
|
Collection.create!(name: "Cards", creator: user, all_access: true)
|
|
workflow = Workflow.create!(name: "Basic")
|
|
Collection.first.update!(workflow: workflow)
|
|
end
|
|
end
|