Sha256: d67da0a4cb6d8aafea0a75bcbd7d4df7452223cc12558d6443f0de5056a24785

Contents?: true

Size: 448 Bytes

Versions: 3

Compression:

Stored size: 448 Bytes

Contents

module Cmor
  module Testimonials
    class Testimonial < ApplicationRecord
      include ActsAsPublished::ActiveRecord
      include Markup::Rails::ActiveRecord

      has_one_attached :image
      belongs_to :category

      acts_as_list scope: :category
      acts_as_published
      acts_as_markup :body, Cmor::Core::Configuration.default_markup_options

      def human
        "#{fullname} (#{role}) - #{company}"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cmor_testimonials-0.0.10.pre app/models/cmor/testimonials/testimonial.rb
cmor_testimonials-0.0.9.pre app/models/cmor/testimonials/testimonial.rb
cmor_testimonials-0.0.8.pre app/models/cmor/testimonials/testimonial.rb