Sha256: e314f69dd14c82cc881cfcb347e1c542bb992dc8e3d71a470e4b179eabe16888
Contents?: true
Size: 763 Bytes
Versions: 8
Compression:
Stored size: 763 Bytes
Contents
# frozen_string_literal: true module C class Testimonial < ApplicationRecord include Orderable include Imageable validates :quote, :author, presence: true belongs_to :project, optional: true def quote_teaser if quote.length > 150 quote.truncate(150) else quote end end INDEX_TABLE = { "Quote": { call: 'quote' }, "Author": { call: 'author' }, "Created": { call: 'created_at' }, "Delete": { link: { name: { text: 'Delete' }, options: '[object]', method: :delete, data: { confirm: 'Are you sure?' } } } }.freeze end end
Version data entries
8 entries across 8 versions & 1 rubygems