Sha256: a919d18ea93c9c458b39bcd168632e56f78d7aa8b3d39518f3279650c0b2fcff
Contents?: true
Size: 608 Bytes
Versions: 6
Compression:
Stored size: 608 Bytes
Contents
module InternalAffairs module ApprovableModel extend ::ActiveSupport::Concern class_methods do def load_from_operation_serialized_attributes(_id) find(_id) end end def attributes_for_operation_serialization attributes[self.class.primary_key] end def approvable_user raise NotImplementedError, 'approvable_user not implemented' end def approvable_operation raise NotImplementedError, 'approvable_operation not implemented' end def approvable_resources [] end def approvable_amount nil end end end
Version data entries
6 entries across 6 versions & 1 rubygems