def account(attributes, &block)
      Account.find_or_create_by!(attributes.slice(:name)) do |account|
        account.attributes = attributes.reverse_merge(name: 'Pageflow')

        build_default_theming_for(account)

        say_creating_account(account)
        yield(account) if block_given?
      end
    end
def account(attributes, &block)
      Account.find_or_create_by!(attributes.slice(:name)) do |account|
        account.attributes = attributes.reverse_merge(name: 'Pageflow')

        build_default_theming_for(account)

        say_creating_account(account)
        yield(account) if block_given?
      end
    end
Create an {Account} with a default {Theming} if no account by
 that name exists.

 @param [Hash] attributes  attributes to override defaults
 @option attributes [String] :name  required
 @yield [account] a block to be called before the account is saved
 @return [Account] newly created account