Merge remote-tracking branch 'origin/main' into feature/061

このコミットが含まれているのは:
2026-03-18 23:02:40 +09:00
コミット 8ccefd9782
19個のファイルの変更858行の追加61行の削除
+17
ファイルの表示
@@ -0,0 +1,17 @@
# frozen_string_literal: true
module TheatreRepr
BASE = { only: [:id, :name, :opens_at, :closes_at, :created_at, :updated_at],
include: { created_by_user: { only: [:id, :name] } } }.freeze
module_function
def base theatre
theatre.as_json(BASE)
end
def many theatre
theatre.map { |t| base(t) }
end
end