2017-10-02 17:03:30 +02:00
|
|
|
class ProcedurePresentation < ActiveRecord::Base
|
|
|
|
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
|