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-10-02 17:03:30 +02:00
|
|
|
end
|