Module: Approval::Mixins

Defined in:
app/models/concerns/approval/mixins.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_approval_resource(ignore_fields: []) ⇒ Object


3
4
5
6
# File 'app/models/concerns/approval/mixins.rb', line 3

def acts_as_approval_resource(ignore_fields: [])
  include ::Approval::ActsAsResource
  assign_ignore_fields(ignore_fields)
end

#acts_as_approval_userObject


8
9
10
# File 'app/models/concerns/approval/mixins.rb', line 8

def acts_as_approval_user
  include ::Approval::ActsAsUser
end