Module: InternalAffairs::ApprovableModel
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/internal_affairs/approvable_model.rb
Instance Method Summary collapse
- #approvable_amount ⇒ Object
- #approvable_operation ⇒ Object
- #approvable_resources ⇒ Object
- #approvable_user ⇒ Object
- #attributes_for_operation_serialization ⇒ Object
Instance Method Details
#approvable_amount ⇒ Object
27 28 29 |
# File 'lib/internal_affairs/approvable_model.rb', line 27 def approvable_amount nil end |
#approvable_operation ⇒ Object
19 20 21 |
# File 'lib/internal_affairs/approvable_model.rb', line 19 def approvable_operation raise NotImplementedError, 'approvable_operation not implemented' end |
#approvable_resources ⇒ Object
23 24 25 |
# File 'lib/internal_affairs/approvable_model.rb', line 23 def approvable_resources [] end |
#approvable_user ⇒ Object
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_serialization ⇒ Object
11 12 13 |
# File 'lib/internal_affairs/approvable_model.rb', line 11 def attributes_for_operation_serialization attributes[self.class.primary_key] end |