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

Version Path
flexite-0.0.25 app/forms/flexite/entry/form.rb
flexite-0.0.24 app/forms/flexite/entry/form.rb
flexite-0.0.23 app/forms/flexite/entry/form.rb
flexite-0.0.22 app/forms/flexite/entry/form.rb
flexite-0.0.21 app/forms/flexite/entry/form.rb
flexite-0.0.20 app/forms/flexite/entry/form.rb
flexite-0.0.19 app/forms/flexite/entry/form.rb
flexite-0.0.18 app/forms/flexite/entry/form.rb
flexite-0.0.17 app/forms/flexite/entry/form.rb
flexite-0.0.16 app/forms/flexite/entry/form.rb
flexite-0.0.15 app/forms/flexite/entry/form.rb
flexite-0.0.14 app/forms/flexite/entry/form.rb
flexite-0.0.13 app/forms/flexite/entry/form.rb
flexite-0.0.12 app/forms/flexite/entry/form.rb
flexite-0.0.11 app/forms/flexite/entry/form.rb
flexite-0.0.10 app/forms/flexite/entry/form.rb
flexite-0.0.9 app/forms/flexite/entry/form.rb
flexite-0.0.8 app/forms/flexite/entry/form.rb
flexite-0.0.7 app/forms/flexite/entry/form.rb
flexite-0.0.6 app/forms/flexite/entry/form.rb