You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/app/forms/item_banks/save_item_form.rb

13 lines
381 B

5 years ago
class ItemBank::SaveItemForm
include ActiveModel::Model
attr_accessor :repertoire_id, :sub_repertoire_id, :item_type, :difficulty, :name, :tag_repertoire_id, :choices
validates :repertoire_id, presence: true
validates :sub_repertoire_id, presence: true
validates :item_type, presence: true
validates :difficulty, presence: true
validates :name, presence: true
end