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