Sha256: 3a99f7edc4c633b7ce8203487d23857ce7c6573b827b93ca1778356e7317f7ee
Contents?: true
Size: 540 Bytes
Versions: 17
Compression:
Stored size: 540 Bytes
Contents
require_dependency "renalware/feeds" module Renalware module Feeds module Files class FileUploadForm include ActiveModel::Model include Virtus::Model attribute :file attribute :file_type_id validates :file, presence: true validates :file_type_id, presence: true def file_type_dropdown_options FileType.pluck(:id, :name, :prompt).map do |id, name, prompt| ["#{name.humanize} - #{prompt}", id] end end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems