Store website content as HTML #273
@ -1,3 +1,5 @@
|
|||||||
|
# Copyright (C) 2024-2025 LibreWeddingPlanner contributors
|
||||||
|
|
||||||
class WebsitesController < ApplicationController
|
class WebsitesController < ApplicationController
|
||||||
def show
|
def show
|
||||||
render json: current_tenant.website.as_json(only: %i[content]) || {}, status: :ok
|
render json: current_tenant.website.as_json(only: %i[content]) || {}, status: :ok
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Copyright (C) 2024-2025 LibreWeddingPlanner contributors
|
||||||
|
|
||||||
# == Schema Information
|
# == Schema Information
|
||||||
#
|
#
|
||||||
# Table name: websites
|
# Table name: websites
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Copyright (C) 2024-2025 LibreWeddingPlanner contributors
|
||||||
|
|
||||||
FactoryBot.define do
|
FactoryBot.define do
|
||||||
factory :website do
|
factory :website do
|
||||||
content { "MyText" }
|
content { "MyText" }
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# Copyright (C) 2024-2025 LibreWeddingPlanner contributors
|
||||||
|
|
||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
RSpec.describe Website, type: :model do
|
RSpec.describe Website, type: :model do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user