Sha256: bfde0ef969ecf16754e7fa4f20a9aa1aa2e62cd45c6244f6a8d78ed86f9f6894

Contents?: true

Size: 690 Bytes

Versions: 2

Compression:

Stored size: 690 Bytes

Contents

module Binda
	# This class provides support for storing text. It can be called directly to get texts, 
	#   or referenced to call other classes depending on it that deal differently with text.
	#   
	# Binda uses this class to store complex texts usually with rich HTML features. On the admin panel infact 
	#   this field is represented by a WYSIWYG. But this is just a admin panel convention: the class can infact store 
	#   a simple string of text as well.
  class Text < ApplicationRecord

  	# Associations
  	belongs_to :fieldable, polymorphic: true
  	belongs_to :field_setting
  	
		validates :fieldable_id, presence: true
		validates :fieldable_type, presence: true
  	
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
binda-0.1.5 app/models/binda/text.rb
binda-0.1.4 app/models/binda/text.rb