diff --git a/app/controllers/websites_controller.rb b/app/controllers/websites_controller.rb index 82d4a15..e801106 100644 --- a/app/controllers/websites_controller.rb +++ b/app/controllers/websites_controller.rb @@ -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 diff --git a/app/models/website.rb b/app/models/website.rb index 95ea759..42c719e 100644 --- a/app/models/website.rb +++ b/app/models/website.rb @@ -1,3 +1,5 @@ +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + # == Schema Information # # Table name: websites diff --git a/spec/factories/websites.rb b/spec/factories/websites.rb index 9bf0807..76e2d8b 100644 --- a/spec/factories/websites.rb +++ b/spec/factories/websites.rb @@ -1,3 +1,5 @@ +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + FactoryBot.define do factory :website do content { "MyText" } diff --git a/spec/models/website_spec.rb b/spec/models/website_spec.rb index 97673ba..c22f339 100644 --- a/spec/models/website_spec.rb +++ b/spec/models/website_spec.rb @@ -1,3 +1,5 @@ +# Copyright (C) 2024-2025 LibreWeddingPlanner contributors + require 'rails_helper' RSpec.describe Website, type: :model do