Sha256: d29c967c6800369cae79d2d7b0d74a5be6c0829a8b19ab7ea7ac2a03e54d0d4d
Contents?: true
Size: 417 Bytes
Versions: 21
Compression:
Stored size: 417 Bytes
Contents
require_dependency 'flexite/base_form' module Flexite class Entry::Form < BaseForm attr_accessor :id, :type, :value, :parent_id, :parent_type validates :type, presence: true def self.model_name Entry.model_name end def view_type type.demodulize.underscore end def history_type Entry.name.underscore end def with_history? persisted? end end end
Version data entries
21 entries across 21 versions & 1 rubygems