2018-03-06 13:44:29 +01:00
|
|
|
class ProcedurePresentation < ApplicationRecord
|
2017-10-02 17:03:30 +02:00
|
|
|
belongs_to :assign_to
|
2017-10-02 17:03:38 +02:00
|
|
|
|
|
|
|
def displayed_fields
|
|
|
|
read_attribute(:displayed_fields).map do |field|
|
|
|
|
field = JSON.parse(field)
|
|
|
|
end
|
|
|
|
end
|
2017-09-27 15:16:07 +02:00
|
|
|
|
|
|
|
def sort
|
|
|
|
JSON.parse(read_attribute(:sort))
|
|
|
|
end
|
2017-09-28 11:04:18 +02:00
|
|
|
|
|
|
|
def filters
|
|
|
|
JSON.parse(read_attribute(:filters))
|
|
|
|
end
|
2017-10-02 17:03:30 +02:00
|
|
|
end
|