demarches-normaliennes/app/models/drop_down_list.rb

8 lines
153 B
Ruby
Raw Normal View History

2016-08-09 16:21:39 +02:00
class DropDownList < ActiveRecord::Base
belongs_to :type_de_champ
def options
value.split(/[\r\n]|[\r]|[\n]|[\n\r]/).reject(&:empty?)
end
end