Skip to content
Snippets Groups Projects
Unverified Commit 3bbdf536 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

missing has_summernote

parent 0a014495
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,11 @@ class Communication::Extranet < ApplicationRecord
include WithStyle
include WithUniversity
has_summernote :home_sentence
has_summernote :terms
has_summernote :privacy_policy
has_summernote :cookies_policy
has_one_attached_deletable :logo
has_one_attached_deletable :favicon do |attachable|
attachable.variant :thumb, resize_to_limit: [228, 228]
......
......@@ -2,6 +2,7 @@ module WithFeaturedImage
extend ActiveSupport::Concern
included do
has_summernote :featured_image_credit
has_one_attached_deletable :featured_image
validates :featured_image, size: { less_than: 5.megabytes }
......
......@@ -83,6 +83,8 @@ class Education::Program < ApplicationRecord
:content,
:results
has_summernote :presentation
belongs_to :parent,
class_name: 'Education::Program',
optional: true
......
......@@ -51,7 +51,8 @@ class Research::Journal::Paper < ApplicationRecord
include WithPublication
include WithSlug
include WithUniversity
has_summernote :references
has_summernote :text
has_one_attached :pdf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment