demarches-normaliennes/app/models/procedure_presentation.rb

10 lines
200 B
Ruby
Raw Normal View History

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