Sha256: 763aa7a102ee39886485352e53720d7b4c77cd640203d8e86c8726548d7af25e

Contents?: true

Size: 261 Bytes

Versions: 11

Compression:

Stored size: 261 Bytes

Contents

# encoding: utf-8

module ConstructorPages
  module Types
    # HTML type. Render ckeditor wysiwyg.
    class HtmlType < ActiveRecord::Base
      belongs_to :field
      belongs_to :page, touch: true

      before_save -> { self.value ||= '' }
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
constructor-pages-1.0.0beta1 app/models/constructor_pages/types/html_type.rb
constructor-pages-0.9.1 app/models/constructor_pages/types/html_type.rb
constructor-pages-0.9.0 app/models/constructor_pages/types/html_type.rb
constructor-pages-0.8.19 app/models/constructor_pages/types/html_type.rb
constructor-pages-0.8.18 app/models/constructor_pages/types/html_type.rb
constructor-pages-0.8.17 app/models/constructor_pages/types/html_type.rb
constructor-pages-0.8.16 app/models/constructor_pages/types/html_type.rb
constructor-pages-0.8.15 app/models/constructor_pages/types/html_type.rb
constructor-pages-0.8.14 app/models/constructor_pages/types/html_type.rb
constructor-pages-0.8.13 app/models/constructor_pages/types/html_type.rb
constructor-pages-0.8.12 app/models/constructor_pages/types/html_type.rb