forgeplus/app/forms/contents/delete_form.rb

7 lines
194 B
Ruby
Raw Normal View History

2020-03-09 00:40:16 +08:00
class Contents::DeleteForm < BaseForm
attr_accessor :login, :repo_identifier, :filepath, :branch, :new_branch, :sha
validates :login, :repo_identifier, :filepath, :sha, presence: true
end