Class: Flexite::Entry
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Flexite::Entry
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
Defined Under Namespace
Modules: InnerProcessable
Classes: ArrayCreateService, ArrayForm, ArrayUpdateService, CreateService, DestroyArrayEntryService, DestroyService, Form, UpdateService
Class Method Summary
collapse
Instance Method Summary
collapse
#restore
Class Method Details
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_value ⇒ Object
12
13
14
|
# File 'app/models/flexite/entry.rb', line 12
def view_value
value.to_s
end
|