Module: InternalAffairs::ApprovableModel

Extended by:
ActiveSupport::Concern
Defined in:
lib/internal_affairs/approvable_model.rb

Instance Method Summary collapse

Instance Method Details

#approvable_amountObject



27
28
29
# File 'lib/internal_affairs/approvable_model.rb', line 27

def approvable_amount
  nil
end

#approvable_operationObject

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/internal_affairs/approvable_model.rb', line 19

def approvable_operation
  raise NotImplementedError, 'approvable_operation not implemented'
end

#approvable_resourcesObject



23
24
25
# File 'lib/internal_affairs/approvable_model.rb', line 23

def approvable_resources
  []
end

#approvable_userObject

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/internal_affairs/approvable_model.rb', line 15

def approvable_user
  raise NotImplementedError, 'approvable_user not implemented'
end

#attributes_for_operation_serializationObject



11
12
13
# File 'lib/internal_affairs/approvable_model.rb', line 11

def attributes_for_operation_serialization
  attributes[self.class.primary_key]
end