Add Form::BaseBatch class for "batch form update" objects (#35458)
This commit is contained in:
14
app/models/form/base_batch.rb
Normal file
14
app/models/form/base_batch.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class Form::BaseBatch
|
||||
include ActiveModel::Model
|
||||
include Authorization
|
||||
include AccountableConcern
|
||||
|
||||
attr_accessor :action,
|
||||
:current_account
|
||||
|
||||
def save
|
||||
raise 'Override in subclass'
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user