app/models/locomotive/extensions/site/first_installation.rb
# only called during the installation workflow, just after the admin account has been created
only called during the installation workflow, just after the admin account has been created
only called during the installation workflow just after the admin account has been created
def create_first_one(attributes)
            site = self.new(attributes)
            account = Account.first
            site.memberships.build account: account, role: 'admin'
            site.save
            account.locale = site.default_locale
            account.save
            site
          end
def create_first_one ( attributes ) site = self . new ( attributes ) account = Account . first site . memberships . build account : account , role : 'admin' site . save account . locale = site . default_locale account . save site end
only called during the installation workflow, just after the admin account has been created
only called during the installation workflow just after the admin account has been created
attributes
<not_specific>