Class: Flexite::Entry

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
WithHistory
Defined in:
app/models/flexite/entry.rb,
app/forms/flexite/entry/array_form.rb,
app/services/flexite/entry/create_service.rb,
app/services/flexite/entry/destroy_service.rb,
app/services/flexite/entry/inner_processable.rb,
app/services/flexite/entry/array_create_service.rb,
app/services/flexite/entry/array_update_service.rb,
app/services/flexite/entry/destroy_array_entry_service.rb

Direct Known Subclasses

ArrEntry, BoolEntry, IntEntry, StrEntry, SymEntry

Defined Under Namespace

Modules: InnerProcessable Classes: ArrayCreateService, ArrayForm, ArrayUpdateService, CreateService, DestroyArrayEntryService, DestroyService, Form, UpdateService

Class Method Summary collapse

Instance Method Summary collapse

Methods included from WithHistory

#restore

Class Method Details

.form(attributes = {}) ⇒ Object



16
17
18
# File 'app/models/flexite/entry.rb', line 16

def self.form(attributes = {})
  Form.new(attributes)
end

.service(type) ⇒ Object



20
21
22
# File 'app/models/flexite/entry.rb', line 20

def self.service(type)
  "entry_#{type}".to_sym
end

Instance Method Details

#view_valueObject



12
13
14
# File 'app/models/flexite/entry.rb', line 12

def view_value
  value.to_s
end