Store website content as HTML #273

Merged
bustikiller merged 3 commits from store-website into main 2025-06-08 21:35:43 +00:00
4 changed files with 8 additions and 0 deletions
Showing only changes of commit 3e363ac7dd - Show all commits

View File

@ -1,3 +1,5 @@
# Copyright (C) 2024-2025 LibreWeddingPlanner contributors
class WebsitesController < ApplicationController
def show
render json: current_tenant.website.as_json(only: %i[content]) || {}, status: :ok

View File

@ -1,3 +1,5 @@
# Copyright (C) 2024-2025 LibreWeddingPlanner contributors
# == Schema Information
#
# Table name: websites

View File

@ -1,3 +1,5 @@
# Copyright (C) 2024-2025 LibreWeddingPlanner contributors
FactoryBot.define do
factory :website do
content { "MyText" }

View File

@ -1,3 +1,5 @@
# Copyright (C) 2024-2025 LibreWeddingPlanner contributors
require 'rails_helper'
RSpec.describe Website, type: :model do