demarches-normaliennes/app/models/drop_down_list.rb
2016-08-09 16:21:39 +02:00

7 lines
153 B
Ruby

class DropDownList < ActiveRecord::Base
belongs_to :type_de_champ
def options
value.split(/[\r\n]|[\r]|[\n]|[\n\r]/).reject(&:empty?)
end
end